简体   繁体   English

Restkit和three20与ios5

[英]Restkit and three20 with ios5

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... 我有一些严重的问题......我需要从ios 5和Xcode 4.2中的另一个开发人员构建一个项目,它包含RestKit和Three20库...

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.. 起初我删除了这两个库,并使用了两个新的副本......他们确实已经构建但我发现其他开发人员编辑了restkit并在restkit中使用了three20 ...所以我必须保留旧的restkit ...然后restkit还可以,但我必须将three20集成到我的main和restkit项目中...然后我集成了..在集成后我发现了这个错误..

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 命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出代码为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 然后我认为这是因为两个项目一次使用相同的库。然后我使用了Three20的两个副本并将其与主项目集成,另一个与restkit项目集成

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 命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出代码为1

I think this is the same error...can anyone show me the path? 我认为这是同样的错误......谁能告诉我路径?

Looks like you are trying to link two copies of the Three20 Library into one binary. 看起来您正在尝试将Three20库的两个副本链接到一个二进制文件中。 That would not work. 那不行。 If the copy of RestKit you obtained already contains Three20 then you would not need to link it separately. 如果您获得的RestKit副本已经包含Three20,那么您不需要单独链接它。 If it only contains part of Three20, try to get rid of that part. 如果它只包含Three20的一部分,请尝试摆脱那部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM