Reputation: 599
I have some serious issues...I need to build a project from another developer in ios 5 and Xcode 4.2 which which has both RestKit and Three20 library...
At first I deleted those two libraries and used fresh copies of two...they did built but I found out other developer edited the restkit and used three20 inside the restkit also...So I have to keep the old restkit...then restkit is ok but I had to integrate three20 both to my main and restkit project...then I integrated that..after integrating I found this error..
ld: duplicate symbol _OBJC_CLASS_$_TT_FIX_CATEGORY_BUG_UISplitViewController_TTNavigator in /Users/mdrezaurrahman/Library/Developer/Xcode/DerivedData/Fake_Conversation-dyigdwifnataxadzsxfirsdjnhsc/Build/Products/Debug-iphonesimulator/libThree20UICommon.a(UISplitViewController+TTNavigator.o) and /Users/mdrezaurrahman/Library/Developer/Xcode/DerivedData/Fake_Conversation-dyigdwifnataxadzsxfirsdjnhsc/Build/Products/Debug-iphonesimulator/libRestKit.a(UISplitViewController+TTNavigator.o) for architecture i386
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
then I thought it is because two project is using same libraries at a time..Then I used two copies of Three20 and integrated one with main project and another with restkit project
then I faced this error
ld: duplicate symbol _OBJC_IVAR_$_TTSectionedDataSource._items in /Users/mdrezaurrahman/Library/Developer/Xcode/DerivedData/Fake_Conversation-bbrkduxuzifkumgngujfpbbboyzb/Build/Products/Debug-iphonesimulator/libRestKit.a(TTSectionedDataSource.o) and /Users/mdrezaurrahman/Library/Developer/Xcode/DerivedData/Fake_Conversation-bbrkduxuzifkumgngujfpbbboyzb/Build/Products/Debug-iphonesimulator/libThree20UI.a(TTSectionedDataSource.o) for architecture i386
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
I think this is the same error...can anyone show me the path?
Upvotes: 3
Views: 443
Reputation: 6767
Looks like you are trying to link two copies of the Three20 Library into one binary. That would not work. If the copy of RestKit you obtained already contains Three20 then you would not need to link it separately. If it only contains part of Three20, try to get rid of that part.
Upvotes: 1