【发布时间】:2016-02-01 07:57:42
【问题描述】:
XCode 版本:版本 7.2 (7C68)
为 PhoneGAP IOS 构建
使用的命令:
xcodebuild -project HelloCordova.xcodeproj -scheme HelloCordova -configuration Release -sdk iphonesimulator IDENTIFIER=com.kony.SyncApp build
升级到 7.2 后升级 Xcode 之前它曾经运行良好,我正面临这个问题。和相同的工作形式 XCODE UI 命令行构建问题
错误信息:
致命错误:发出的错误太多,现在停止 [-ferror-limit=] 生成了 20 个错误。
** 构建失败 **
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 Compiler 3.1 error clang
Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64' on Xcode 7 Beta 2
【问题讨论】:
-
实际错误是什么? “致命错误:发出的错误太多,......”出现在详细的错误消息之后。我们需要这些细节。
-
无法在此处添加日志。以下链接分享的日志,请查看pastebin.com/eXgaLRy4
-
我们是
#error architecture not supported。你明白这意味着什么吗? -
不,我不是 16 位还是 32 位
-
嗯,这只是位大小。现在的架构是
armv7、arm64、x86和x86_64。这就是 ARM CPU(设备)和 Intel CPU(模拟器)。看起来您使用了错误的架构,升级到 Xcode 7.2 时可能会发生您需要在项目构建设置中检查支持的架构。
标签: ios objective-c xcode cordova