6
以前我曾在一個項目中執行得很好Xcode 5.1.1版本。當我運行相同的代碼在Xcode 6與iPhone5(8.0)模擬器它顯示鐺錯誤。在這裏我添加了這個錯誤。請幫助我。Xcode 6與iPhone5(8.0)模擬器 - 當我運行項目時顯示叮鐺聲的錯誤
Ld /Users/Anji/Library/Developer/Xcode/DerivedData/EuroTrips-cqammgactoqvmbdefwhycdhgrfkc/Build/Products/Debug-iphonesimulator/EuroTrips.app/EuroTrips normal i386
cd /Users/Anji/ios-trip-europe
export IPHONEOS_DEPLOYMENT_TARGET=4.0
export PATH="/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode 2.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode\ 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode\ 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/Users/Anji/Library/Developer/Xcode/DerivedData/EuroTrips-cqammgactoqvmbdefwhycdhgrfkc/Build/Products/Debug-iphonesimulator -L/Users/Anji/ios-trip-europe/EuroTrips/Twitter+OAuth/Libraries\ &\ Headers -F/Users/Anji/Library/Developer/Xcode/DerivedData/EuroTrips-cqammgactoqvmbdefwhycdhgrfkc/Build/Products/Debug-iphonesimulator -filelist /Users/Anji/Library/Developer/Xcode/DerivedData/EuroTrips-cqammgactoqvmbdefwhycdhgrfkc/Build/Intermediates/EuroTrips.build/Debug-iphonesimulator/EuroTrips.build/Objects-normal/i386/EuroTrips.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.0 -framework Social -weak-lxml2 -weak_framework Accounts -weak_framework Twitter -framework SystemConfiguration -framework MessageUI -lsqlite3.0 -framework CoreLocation -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lOAuth -Xlinker -dependency_info -Xlinker /Users/Anji/Library/Developer/Xcode/DerivedData/EuroTrips-cqammgactoqvmbdefwhycdhgrfkc/Build/Intermediates/EuroTrips.build/Debug-iphonesimulator/EuroTrips.build/Objects-normal/i386/EuroTrips_dependency_info.dat -o /Users/Anji/Library/Developer/Xcode/DerivedData/EuroTrips-cqammgactoqvmbdefwhycdhgrfkc/Build/Products/Debug-iphonesimulator/EuroTrips.app/EuroTrips
ld: -pie can only be used when targeting iOS 4.2 or later
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我可以知道爲什麼投票嗎? – 2014-09-22 10:28:38
您的部署目標設置爲4.0,但'-pie'只能在針對iOS 4.2或更高版本時使用,如上面的錯誤消息所明確指出的。嘗試將您的部署目標設置爲4.3。這是Xcode 6支持的最低部署目標。 – Paul 2014-09-22 10:35:22
感謝您的評論。它工作正常 – 2014-09-22 10:37:50