2011-12-05 112 views
0

我正在尝试使用RestKit构建我的项目,当我构建它时出现以下错误。我已经尝试使用Apple LLVM 3.0和LLVM GCC 4.2编译,两者都产生相同的结果。任何有什么想法是什么导致这个问题?构建iOS应用程序后退出代码1错误

Ld "/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator/Line.app/Line" normal i386 
    cd "/Jim/Documents/Xcode Projects/Line" 
    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/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator" "-F/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator" -filelist "/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Intermediates/Line.build/Debug-iphonesimulator/Line.build/Objects-normal/i386/Line.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 -framework MobileCoreServices -framework CFNetwork -framework SystemConfiguration -lxml2 "/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator/libRestKit.a" -framework CoreData -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/Jim/Library/Developer/Xcode/DerivedData/Line-dmzyzxolztfnmyeuzqkqcinpsoeq/Build/Products/Debug-iphonesimulator/Line.app/Line" 

Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1 

enter image description here

+0

你没有看到任何错误信息? –

+0

这是唯一正在显示的东西。 – atrljoe

+0

这很奇怪。运行命令cd/Jim/Documents/Xcode Projects/Line“&& MACOSX_DEPLOYMENT_TARGET = 10.6 PATH =”/ Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/ Developer/usr/bin:/ usr/bin :/ bin:/ usr/sbin:/ sbin“...在终端中提供更多的信息? –

回答

3

atrljoe: 你根据wiki页面github.com/RestKit “在Xcode 4.x的安装RestKit” 打造RestKit?我认为有一点小错误。 这里是我的解决方案: 1.在“构建阶段” - >“链接二进制与图书馆”,删除RestKit.framework并添加Security.frameWork 2.构建再次

然后它工作。

+0

Thx Dude你节省了我很多时间 – sachin