Search code examples
xcodejsoncocos2d-iphonelibrariessharekit

xcode problem with importing libraries


I have a project containing cocos2d framework, sharekit, asi & json. I've noticed that for example Reachability.m/h and some other files exists in more than one framework. How do I solve this problem?

Here's the error from transcript


ld: duplicate symbol _OBJC_IVAR_$_Reachability.reachabilityRef in /Users/fredrik/Workspace/********/build/********.build/Debug-iphonesimulator/********.build/Objects-normal/i386/Reachability-89CD930C57F9E55C.o and /Users/fredrik/Workspace/********/build/********.build/Debug-iphonesimulator/********.build/Objects-normal/i386/Reachability-6FEC7F1ECD12144E.o

I'm using Xcode 3.2.4 with iOS 4.2 and OS X 10.6.7


Solution

  • Delete all but one copy. Move that single copy out of the containing library folder (for your sanity's sake).