2012-01-18 81 views
3

我一直在關注RestKit安裝說明,但是現在我嘗試構建應用程序時出現錯誤。這是針對ios,iPad的具體情況。RestKit鏈接程序錯誤

我得到 「命令/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

我注意到進一步尋找後,在「鏈接二進制與圖書館」的libRestKit.a是紅色的。我想這可能是一個部分或整個問題...

+0

真的是-1嗎?它是一件常見的事情要做和錯過。 – Darxval 2012-01-20 21:32:49

回答

3

所以我找到了答案,我不能相信我錯過了這個非常簡單的事情。希望這會幫助有這個問題的其他人。

在連接部分確保它是「其他鏈接器標記」 -ObjC -all_load

我誤入-ObjC - all_load 空間後的第二個破折號是原因。

3

我忘了包括libRestKit.a並收到相同的錯誤。添加圖像來幫助像我這樣的人。

enter image description here

+0

如果你使用CocoaPods,你如何添加這個? – Realinstomp 2014-04-03 00:23:42