Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败

时间:2011-12-30 11:24:04

标签: iphone objective-c

我收到以下错误消息:

Ld /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator/iFly.app/iFly normal i386
    cd /Users/kIT98K/proooo2/VPN38/iFly
    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/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator -F/Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator -filelist /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Intermediates/iFly.build/Debug-iphonesimulator/iFly.build/Objects-normal/i386/iFly.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lxml2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -lxml2 -framework Security -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator/RestKit/RestKit /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator/libRestKit.a -o /Users/kIT98K/Library/Developer/Xcode/DerivedData/iFly-cijrdcwdnrwowmgcazhvczqzkctd/Build/Products/Debug-iphonesimulator/iFly.app/iFly

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

我尝试使用xcodebuild -target构建更多信息,

Ld build/Release-iphoneos/iFly.app/iFly normal armv7
    cd /Users/kIT98K/proooo2/VPN38/iFly
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/kIT98K/proooo2/VPN38/iFly/build/Release-iphoneos -F/Users/kIT98K/proooo2/VPN38/iFly/build/Release-iphoneos -filelist /Users/kIT98K/proooo2/VPN38/iFly/build/iFly.build/Release-iphoneos/iFly.build/Objects-normal/armv7/iFly.LinkFileList -dead_strip -ObjC -lxml2 -miphoneos-version-min=4.3 -lxml2 -framework Security -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics /Users/kIT98K/proooo2/VPN38/iFly/RestKit/build/Release/RestKit.framework/RestKit /Users/kIT98K/proooo2/VPN38/iFly/RestKit/build/Release-iphoneos/libRestKit.a -o /Users/kIT98K/proooo2/VPN38/iFly/build/Release-iphoneos/iFly.app/iFly
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1


** BUILD FAILED **


The following build commands failed:
    Ld build/Release-iphoneos/iFly.app/iFly normal armv7
(1 failure)

请提供帮助,在此消息发布之前,请在此处进行为期一周的搜索。 感谢。

2 个答案:

答案 0 :(得分:2)

选择您的构建目标并在“构建阶段” - > “目标依赖项”,将您使用的项目(我猜是RestKit)添加到列表中。

答案 1 :(得分:0)