所以我想在終端中使用xcodebuild從測試應用程序(稱爲RunTeszt1)創建一個構建。該應用程序是一個iOS單一視圖應用程序,沒有任何內容,只是創建和關閉。iOS:XCode 4.4.1:xcodebuild錯誤 - 無法從文件中讀取診斷
當我從終端,這種構建失敗。
xcodebuild -target "RunTeszt1" -sdk "$iphoneos5" -configuration Debug
的錯誤是:
Unable to read diagnostics from file "/var/folders/6s/cjw35hhs5lb6wpnx9m8lr2km0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/RunTeszt1-Prefix-eqntxoxxhhlzvieuipqbxfumbpxb/RunTeszt1-Prefix.pch.dia" (Invalid File): Bad header in diagnostics file
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
當我運行在Xcode(4.4.1)的應用,構建完成後,一切正常。但是,如果我運行控制檯應用程序並在XCode中點擊構建按鈕後檢查結果,我會在控制檯中看到相同的錯誤消息。不過建立成功並打開模擬器。
這是真的應該發送到蘋果的xcodebuild的錯誤嗎?如果是這樣,我想像一羣人已經發送了它。
我該如何讓錯誤消失,或阻止它取消構建過程,因此避免它像XCode一樣?