Xcode的生成错误铛失败(Xcode build error clang failed)

2019-09-18 22:19发布

缺少某些内容在我的iPhone应用程序。

我没有成功解决这个错误,那接缝对我来说是火星的错误......我不明白,在所有的,即使经过多次搜索...

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 developper可以建立和没有问题运行,具有相同的代码...我们通过Github上versionned。

有谁有媒体链接看到这种类型的错误吗?

Answer 1:

它看起来像你有一个流浪-Header Search Paths在Xcode项目设置。

不幸的是,没有找到这除了通过使用项目浏览器的文件寻找一个特别简单的方式(你可以用文本编辑器编辑它,但可能恶化的问题)。

基本上,在Project Navigator(左窗格)选择项目文档,然后通过该项目的生成设置一下,然后依次在每个目标生成设置,找Header Search Paths设置,并在任何地方它显示为粗体,你将要双击并确保没有一个单一的--后面有一个空格或逗号,它可以被解析为一个参数)。

如果你没有找到这种方式,你可以有一个解析为一个构建设置-所以看生成设置的底部,并确保没有被设置为一个用户定义的变量---,



Answer 2:

无论是在前缀或连接标志,你告诉铛处理名为-I-标志,它是不是一个有效的标志。 删除并重新构建。



文章来源: Xcode build error clang failed