xcode 命令行构建失败,com.apple.compilers.llvm.clang.1_0.compiler
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35125494/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
xcode command line build failed with com.apple.compilers.llvm.clang.1_0.compiler
提问by Yugandhar
XCode Version: Version 7.2 (7C68)
Building for PhoneGAP IOS
Commands used:
XCode 版本:7.2 版 (7C68)
构建 PhoneGAP IOS
命令使用:
xcodebuild -project HelloCordova.xcodeproj -scheme HelloCordova -configuration Release -sdk iphonesimulator IDENTIFIER=com.kony.SyncApp build
It used to work well before upgrading Xcode after upgrading to 7.2 , i am facing this issue. And same wokring form XCODE UI Problem with command line build
在升级到 7.2 之后升级 Xcode 之前它曾经运行良好,我正面临这个问题。与命令行构建相同的工作形式 XCODE UI 问题
Error Info:
错误信息:
fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated.
致命错误:发出的错误太多,现在停止 [-ferror-limit=] 生成了 20 个错误。
** BUILD FAILED **
** 构建失败 **
The following build commands failed:
ProcessPCH /Users/konysync/Library/Developer/Xcode/DerivedData/HelloCordova-gyroiomjvclmgtfewwtckeoypgfd/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-almeazhzuslzcvewimbluxlrnwby/CordovaLib_Prefix.pch.pch CordovaLib_Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
ProcessPCH /Users/konysync/Library/Developer/Xcode/DerivedData/HelloCordova-gyroiomjvclmgtfewwtckeoypgfd/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-bvlrmrstkahcccfcihrhcdumeenk/CordovaLib_Prefix.pch.pch CordovaLib_Prefix.pch normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
(2 次失败)
found some links , but those links did not help.
Apple LLVM Compiler 3.1 error clang
Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64' on Xcode 7 Beta 2
找到了一些链接,但这些链接没有帮助。
苹果LLVM编译器3.1错误铛
不支持的编译器com.apple.compilers.llvm.clang.1_0'选择用于架构“x86_64的”上的Xcode 7 Beta 2的
回答by Oscar Hierro
This is a bug introduced in Xcode 7.2 (and still not fixed as of 7.2.1), see https://openradar.appspot.com/23857648It seems that xcodebuild
is not setting correctly the ARCH
and PLATFORM_NAME
variables when invoked with -sdk iphonesimulator
.
这是在Xcode 7.2引入了一个错误(但仍不能固定为7.2.1),见https://openradar.appspot.com/23857648似乎xcodebuild
没有设置正确ARCH
,并PLATFORM_NAME
当调用变量-sdk iphonesimulator
。
There are two known workarounds at the moment, both involve passing extra flags to xcodebuild
:
目前有两种已知的解决方法,都涉及将额外的标志传递给xcodebuild
:
1) Pass the -destination
flag, eg:
1)传递-destination
标志,例如:
xcodebuild [...] -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6'
2) Override the PLATFORM
variable, eg:
2)覆盖PLATFORM
变量,例如:
xcodebuild [...] -sdk iphonesimulator PLATFORM_NAME=iphonesimulator
回答by Bilal Qaimkhani
i have tried to resolve this error many times and follows multiple steps of every one but not worked for me after that i deleted my build folder from project ios directory like react-native-project>ios>Build folder it worked for me.
我曾多次尝试解决此错误,并遵循每个步骤的多个步骤,但在我从项目 ios 目录中删除了我的 build 文件夹后,如 react-native-project>ios>Build 文件夹,它对我有用。