RestKit链接器错误

我一直在关注RestKit安装说明,但是现在我尝试构build应用程序时出现错误。 这是针对ios,iPad的具体情况。

我得到“命令/开发/平台/ iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出码1”

描述:

Ld build/Debug-iphonesimulator/iDoor.app/iDoor normal i386 cd "/Users/User/Dropbox/darxstudios/FatCow Games/iDoor" setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 - isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk "-L/Users/User/Dropbox/darxstudios/FatCow Games/iDoor/build/Debug-iphonesimulator" "-F/Users/User/Dropbox/darxstudios/FatCow Games/iDoor/build/Debug-iphonesimulator" -filelist "/Users/User/Dropbox/darxstudios/FatCow Games/iDoor/build/iDoor.build/Debug-iphonesimulator/iDoor.build/Objects-normal/i386/iDoor.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC - all_load -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework Security -lxml2 -framework SystemConfiguration -framework MobileCoreServices -framework CoreData -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/User/Dropbox/darxstudios/FatCow Games/iDoor/build/Debug-iphonesimulator/iDoor.app/iDoor" 

我不是使用XCode的专家,但它几乎似乎是要部署为MAC OSX,但我有ios的目标设置。 任何帮助,将不胜感激。

此外,我没有添加RestKit.framework(mac osx版本),我按照说明在这里安装RestKit: https : //github.com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4。 X

进一步观察后,我注意到在“链接二进制与库”libRestKit.a是红色的。 我想这可能是一个部分或整个问题…

所以我find了答案,我不能相信我错过了这个非常简单的事情。 希望这会帮助有这个问题的其他人。

在链接器部分确保它是“其他链接器标志” -ObjC -all_load

我错误地进入了-ObjC - all_load第二短跑之后的空间是原因。

我忘了包含libRestKit.a并收到相同的错误。 添加图像来帮助像我这样的人。

在这里输入图像说明