question

GARTH O SMITH avatar image
GARTH O SMITH asked

Duplicate symbol linker errors when building with Unity for iOS.

When attempting to build our game in Unity, we get a lot of linker errors. Unity creates the XCode project without any errors, but building in XCode fails with a bunch of duplicate symbol errors. Here's a sample of errors XCode displays when attempting a build. It looks like there are over a hundred of these errors. Does anyone have a clue on what might be causing this and how to fix it? - Garth duplicate symbol __AmazonGameCircleShowAchievementsOverlay in: /Users/garthsmith/Desktop/Builds/PugRunApple/20140321.1102/Libraries/libGameCircleUnityProxy.a(GameCircleAchievementsUnityProxy-741F2000BC2B6164.o) duplicate symbol __AmazonGameCircleRequestAchievements in: /Users/garthsmith/Desktop/Builds/PugRunApple/20140321.1102/Libraries/libGameCircleUnityProxy.a(GameCircleAchievementsUnityProxy-741F2000BC2B6164.o) duplicate symbol __AmazonGameCircleUpdateAchievementProgress in: /Users/garthsmith/Desktop/Builds/PugRunApple/20140321.1102/Libraries/libGameCircleUnityProxy.a(GameCircleAchievementsUnityProxy-741F2000BC2B6164.o) duplicate symbol __AmazonGameCircleRequestLocalPlayer in: /Users/garthsmith/Desktop/Builds/PugRunApple/20140321.1102/Libraries/libGameCircleUnityProxy.a(GameCircleLeaderboardsUnityProxy.o) /Users/garthsmith/Desktop/Builds/PugRunApple/20140321.1102/Libraries/libGameCircleUnityProxy.a(GameCirclePlayerUnityProxy.o) duplicate symbol _OBJC_CLASS_$_AIAmazonLogger in: /Users/garthsmith/Desktop/Builds/PugRunApple/20140321.1102/Libraries/AmazonInsightsSDK.a(AIAmazonLogger.o) /Users/garthsmith/Desktop/Builds/PugRunApple/20140321.1102/Libraries/libGameCircleUnityProxy.a(AIAmazonLogger.o) duplicate symbol _OBJC_METACLASS_$_AIAmazonLogger in: /Users/garthsmith/Desktop/Builds/PugRunApple/20140321.1102/Libraries/AmazonInsightsSDK.a(AIAmazonLogger.o) /Users/garthsmith/Desktop/Builds/PugRunApple/20140321.1102/Libraries/libGameCircleUnityProxy.a(AIAmazonLogger.o) Message was edited by: GARTH O SMITH
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

GARTH O SMITH avatar image
GARTH O SMITH answered
I found this forum post: https://forums.developer.amazon.com/forums/thread.jspa?threadID=2369 Workaround: Whenever I make a fresh build, unlinking the Amazon Insights library in XCode allowed me to build.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.