2011-12-05 53 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

相關問題