2012-07-01 143 views
2

我的iPhone應用程序中缺少某些東西。Xcode構建錯誤鐺失敗

我沒有成功解決這個錯誤,那接縫對我來說是火星錯誤... 我不明白可言,即使經過多次的搜索...

ProcessPCH /Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/PrecompiledHeaders/IntraMuros-Prefix-etlohrlrqzwcjicedfazzdvoaqbq/IntraMuros-Prefix.pch.pth IntraMuros/IntraMuros-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
cd "/Users/xyz/iOS - Applications/intramuros-ios/Application" 
setenv LANG en_US.US-ASCII 
setenv 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/clang -x objective-c-header -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.6 -g -Wno-conversion -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -iquote /Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/IntraMuros.build/Debug-iphonesimulator/IntraMuros.build/IntraMuros-generated-files.hmap -I/Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/IntraMuros.build/Debug-iphonesimulator/IntraMuros.build/IntraMuros-own-target-headers.hmap -I/Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/IntraMuros.build/Debug-iphonesimulator/IntraMuros.build/IntraMuros-all-target-headers.hmap -iquote /Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/IntraMuros.build/Debug-iphonesimulator/IntraMuros.build/IntraMuros-project-headers.hmap -I/Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Products/Debug-iphonesimulator/include -I/Users/xyz/iOS -I- -IApplications/intramuros-ios/Application/IntraMuros/Vendors/mapbox-ios-sdk -I/Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/IntraMuros.build/Debug-iphonesimulator/IntraMuros.build/DerivedSources/i386 -I/Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/IntraMuros.build/Debug-iphonesimulator/IntraMuros.build/DerivedSources -F/Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Products/Debug-iphonesimulator --serialize-diagnostics /Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/PrecompiledHeaders/IntraMuros-Prefix-etlohrlrqzwcjicedfazzdvoaqbq/IntraMuros-Prefix.pch.dia -c "/Users/xyz/iOS - Applications/intramuros-ios/Application/IntraMuros/IntraMuros-Prefix.pch" -o /Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/PrecompiledHeaders/IntraMuros-Prefix-etlohrlrqzwcjicedfazzdvoaqbq/IntraMuros-Prefix.pch.pth -MMD -MT dependencies -MF /Users/xyz/Library/Developer/Xcode/DerivedData/IntraMuros-cqmesmesegqjxofftymiymllpzow/Build/Intermediates/PrecompiledHeaders/IntraMuros-Prefix-etlohrlrqzwcjicedfazzdvoaqbq/IntraMuros-Prefix.pch.d 

clang: error: '-I-' not supported, please use -iquote instead 
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 

我用的是這個應用程序的mapbox項目,也許是相關的,但我不認爲它?!

真正奇怪的是,項目的其他iOS開發人員可以使用相同的代碼構建並運行,而且沒有問題...我們通過Github進行了版本控制。

有沒有人已經看到這種類型的錯誤?

回答

5

看起來您在xCode項目中設置了Header Search Paths設置中的零星-

不幸的是,除了使用項目查看器查看文檔(您可以使用文本編輯器編輯它,但這可能會惡化問題)之外,沒有特別簡單的方法來查找此文件。

基本上,在項目導航器(左窗格)中選擇項目文檔,然後查看項目的構建設置,然後依次查看每個目標的構建設置,查找Header Search Paths設置以及其顯示爲粗體,您需要雙擊並確保沒有單個-(或-後跟一個空格或逗號,可以將其解析爲單個參數)。

如果您沒有以這種方式找到它,您可能會有一個生成設置,解析爲-,因此請查看生成設置的底部並確保沒有設置的用戶定義變量到-(或--,)。

+0

我的上帝!!!!! 這是它! 我有一個 - 在項目的任何父文件夾,這是問題的根源... 謝謝你很多關於這一點,我快要瘋了! –

0

無論是在前綴還是鏈接器標誌中,都已告知clang處理名爲-I-的標誌,該標誌不是有效標誌。刪除它並重新構建。

+0

我沒有在我的設置上找到這個標誌,你知道它可能在哪裏嗎? –

+0

你正在構建什麼體系結構(armv6/7),構建設置是什麼樣的? – CodaFi