繁体   English   中英

RestKit Linker错误

[英]RestKit Linker error

我一直在关注RestKit安装说明,但是当我尝试构建应用程序时,我现在遇到了错误。 这是针对ios,iPad特定的。

我得到“Command /Developer/Platforms/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

在进一步观察后,我注意到在“Link Binary With Libraries”中,libRestKit.a为红色。 我想这可能是一个部分或整个问题......

所以我找到了答案,我无法相信我错过了这个非常简单的事情。 希望这将有助于其他有此问题的人。

在链接器部分,确保它是“Other Linker Flags” -ObjC -all_load

我错误地输入-ObjC - all_load第二次冲刺后的空间是原因。

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

在此输入图像描述

暂无
暂无

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

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