xcode命令行构建失败,并出现com.apple.compilers.llvm.clang.1_0.compiler [英] xcode command line build failed with com.apple.compilers.llvm.clang.1_0.compiler

查看:184
本文介绍了xcode命令行构建失败,并出现com.apple.compilers.llvm.clang.1_0.compiler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XCode版本:7.2版(7C68)
构建PhoneGAP IOS
使用的命令:

XCode Version: Version 7.2 (7C68)
Building for PhoneGAP IOS
Commands used:

xcodebuild -project HelloCordova.xcodeproj -scheme HelloCordova -configuration Release -sdk iphonesimulator IDENTIFIER=com.kony.SyncApp build 

在升级到7.2后升级Xcode之前,它曾经工作得很好,我正面临着这个问题.和相同的形式XCODE UI 命令行构建问题

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

错误信息:

严重错误:发出太多错误,现在停止[-ferror-limit =] 产生20个错误.

fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated.

**生成失败**

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次失败)

找到了一些链接,但是这些链接没有帮助.
Apple LLVM编译器3.1错误c
不支持的编译器'com.apple.compilers在Xcode 7 Beta 2上为架构'x86_64'选择了.llvm.clang.1_0'

(2 failures)

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

推荐答案

这是Xcode 7.2中引入的错误(但自7.2.1以来尚未修复),请参见

This is a bug introduced in Xcode 7.2 (and still not fixed as of 7.2.1), see https://openradar.appspot.com/23857648 It seems that xcodebuild is not setting correctly the ARCH and PLATFORM_NAME variables when invoked with -sdk iphonesimulator.

目前有两种已知的解决方法,都涉及将额外的标志传递给xcodebuild:

There are two known workarounds at the moment, both involve passing extra flags to xcodebuild:

1)传递-destination标志,例如:

1) Pass the -destination flag, eg:

xcodebuild [...] -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6'

2)覆盖PLATFORM变量,例如:

2) Override the PLATFORM variable, eg:

xcodebuild [...] -sdk iphonesimulator PLATFORM_NAME=iphonesimulator

这篇关于xcode命令行构建失败,并出现com.apple.compilers.llvm.clang.1_0.compiler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆