我最近升級到了Xcode 5.1,並且在編譯我的iOS模擬器7.1項目時開始看到下面的錯誤。任何人都有任何線索,請提出建議。使用Xcode 5.1在模擬器上編譯錯誤
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:未知的選項字符'X」在:-Xlinker
PS:這是在我構建靜態庫時發生。
下面是詳細的日誌:
所有的Libtool /Users/abhinavgupta/Library/Developer/Xcode/DerivedData/Runner-bkjzsbxewixhinattctkwyrdqaff/Build/Products/UAT\ -\ Debug\ -\ Sandbox-iphonesimulator/libRunner.a normal i386
cd /Users/abhinavgupta/iRunner/Code/Runner/branches/Runner_14.1_Release/client/src/Runner
export IPHONEOS_DEPLOYMENT_TARGET=5.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/abhinavgupta/Library/Developer/Xcode/DerivedData/Runner-bkjzsbxewixhinattctkwyrdqaff/Build/Products/UAT\ -\ Debug\ -\ Sandbox-iphonesimulator -LLinea -L/Users/abhinavgupta/iRunner/Code/Runner/branches/Runner_14.1_Release/client/src/Runner -L/Users/abhinavgupta/iRunner/Code/Runner/branches/Runner_14.1_Release/client/src/Runner/Linea -L/Users/abhinavgupta/iRunner/Code/Runner/branches/Runner_14.1_Release/client/src/Runner/ISTRemoteForms -L/Users/abhinavgupta/iRunner/Code/Runner/branches/Runner_14.1_Release/client/src/Runner/ISTCT -filelist /Users/abhinavgupta/Library/Developer/Xcode/DerivedData/Runner-bkjzsbxewixhinattctkwyrdqaff/Build/Intermediates/Runner.build/UAT\ -\ Debug\ -\ Sandbox-iphonesimulator/EasyPay.build/Objects-normal/i386/Runner.LinkFileList -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/abhinavgupta/Library/Developer/Xcode/DerivedData/Runner-bkjzsbxewixhinattctkwyrdqaff/Build/Intermediates/Runner.build/UAT\ -\ Debug\ -\ Sandbox-iphonesimulator/EasyPay.build/Runner.xcent -framework CoreMotion -framework CoreData -framework CoreGraphics -framework Foundation -framework QuartzCore -framework SystemConfiguration -framework UIKit -framework Security -framework ExternalAccessory -framework CoreLocation -framework MapKit -framework MessageUI -framework OpenAL -framework OpenGLES /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libz.dylib -framework AudioToolbox -o /Users/abhinavgupta/Library/Developer/Xcode/DerivedData/Runner-bkjzsbxewixhinattctkwyrdqaff/Build/Products/UAT\ -\ Debug\ -\ Sandbox-iphonesimulator/libRunner.a
首先要做的事情可能是識別傳入的位置。如果你轉到Log Navigator(command + 8),並搜索「X」或「-X」,那麼構建過程的哪一部分是它來自(哪裏? – farski
日誌導航器中沒有任何可疑內容。請參閱附件截圖。 – Abhinav