2013-03-24 63 views
0

每當我嘗試編譯我的xcode項目時,都會收到此錯誤消息,我一直在搜索和應用其他相關問題的答案,但仍無法解決問題,所以我發佈了消息這個具體的問題。我怎樣才能解決這個問題?Apple LLVM編譯器4.2錯誤

ProcessPCH "/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/PrecompiledHeaders/Project Name-Prefix-dyzfahcpvwmwmcbbcszxksgksawt/Project Name-Prefix.pch.pth" "Company/Project Name-Prefix.pch" normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
cd "/Users/ObsidianSword/Dropbox/ProjectName - iOS Projects Folder/Official Projects/Project Name (Company 3.3.3.2)" 
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 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote "/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/ProjectName-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/ProjectName.build/ProjectName-generated-files.hmap" "-I/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/ProjectName.build/ProjectName-own-target-headers.hmap" "-I/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/ProjectName.build/ProjectName-all-target-headers.hmap" -iquote "/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/ProjectName.build/ProjectName-project-headers.hmap" -I/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Products/Debug-iphonesimulator/include -I/Users/ChristianD/Applications/link_os_sdk/iOS/v1.1.5266/lib/include -I/Users/ObsidianSword/Dropbox/Company -I- -IiOS -IProjects -IFolder/Official -IProjects/Project -ISolution "-I(Company" "-I3.3.3.2)/../ReaderAPI-iOS-0.7/ReaderAPI-iOS-0.7" -I/Users/ObsidianSword/Dropbox/Company -I- -IiOS -IProjects -IFolder/Official -IProjects/Open -ISolution "-I(Company" "-I3.3.3.2)/../ReaderAPI-iOS-1.0/ReaderAPI-iOS-1.0" -I/Users/ObsidianSword/Dropbox/Company -I- -IiOS -IProjects -IFolder/Official -IProjects/Open -ISolution "-I(Company" "-I3.3.3.2)/Company/lib/include" "-I/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/ProjectName.build/DerivedSources/i386" "-I/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/ProjectName.build/DerivedSources" -F/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Products/Debug-iphonesimulator -DNS_BLOCK_ASSERTIONS=1 --serialize-diagnostics "/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/PrecompiledHeaders/ProjectName-Prefix-dyzfahcpvwmwmcbbcszxksgksawt/ProjectName-Prefix.pch.dia" -c "/Users/ObsidianSword/Dropbox/Company - iOS Projects Folder/Official Projects/Project Name (Company 3.3.3.2)/Company/Project Name-Prefix.pch" -o "/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/PrecompiledHeaders/ProjectName-Prefix-dyzfahcpvwmwmcbbcszxksgksawt/ProjectName-Prefix.pch.pth" -MMD -MT dependencies -MF "/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/Project Name-bkinddajwtvxeybjhjlenxyuhuxu/Build/Intermediates/PrecompiledHeaders/Project Name-Prefix-dyzfahcpvwmwmcbbcszxksgksawt/Project Name-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 
+0

這條線是什麼困擾我: 鏗鏘:錯誤:'我 - '不支持,請使用-iquote代替命令 – ProteanDev 2013-03-24 10:59:08

回答

0

看來,這與我的庫編譯版本有關。 對於任何有相同問題或接近此問題的人,請確保您的設備製造商擁有最新的庫。

1

據我看到的崩潰日誌。 我想你已經設置爲「-I」

-I/Users/ObsidianSword/Library/Developer/Xcode/DerivedData/ProjectName-bkinddajwtvxeybjhjlenxyuhuxu/Build/Products/Debug-iphonesimulator/include 

一個錯誤的庫路徑,你可以在路徑,這是不是蘋果LLVM編譯器支持的盯着看。 修復它,你的問題將得到解決。

+0

我的標題和庫目標項目設置中的搜索路徑沒有這個「-I」的東西在上面。 – ProteanDev 2013-03-24 13:28:37

1

這看起來可疑:

-I/Users/ObsidianSword/Dropbox/Company -I- -IiOS -IProjects -IFolder/Official -IProjects/Project -ISolution "-I(Company" "-I3.3.3.2)/../ReaderAPI-iOS-0.7/ReaderAPI-iOS-0.7" 

它看起來就像你有一個包括真正應該只是

-I"/Users/ObsidianSword/Dropbox/Company - iOS Projects Folder/Official Projects/ProjectName (Company 3.3.3.2)/../ReaderAPI-iOS-0.7/ReaderAPI-iOS-0.7" 

或者類似路徑,但它可能是缺少引號佔空間在文件路徑中。我會在你的Xcode項目設置中尋找類似的東西,並用引號將完整路徑包裝起來。

4

對於任何獲得LLVM編譯器4.2錯誤和上述解決方案無法正常工作的人,請嘗試清理+編譯或重新啓動XCode/Mac。在我的情況下,重新啓動Xcode不起作用,但重新啓動Mac解決了問題。

相關問題