【发布时间】:2012-01-18 21:20:51
【问题描述】:
我一直遵循 RestKit 安装说明,但现在尝试构建应用程序时出现错误。这是针对 ios、iPad 的。
我收到“命令 /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 是红色的。我认为这可能是部分或全部问题...
【问题讨论】:
-
真的是-1吗?这是一件很常见的事情,也很容易错过。
标签: ios ipad ios5 linker-errors restkit