我正在尝试打开我的一个旧项目,该项目是使用 iOS 6.0 构建的。该项目过去可以正常编译,但是当在 xCode 5 下打开时,我收到此神秘的错误消息。
Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7'
Unable to determine concrete GCC compiler for file /Users/alexanderstone/Desktop/Development/RestKit/Vendor/NXJSON/NSError+Extensions.m of type sourcecode.c.objc.
Unable to determine concrete GCC compiler for file /Users/alexanderstone/Desktop/Development/RestKit/Vendor/NXJSON/NXDebug.m of type sourcecode.c.objc.
Unable to determine concrete GCC compiler for file /Users/alexanderstone/Desktop/Development/RestKit/Vendor/NXJSON/NXJsonParser.m of type sourcecode.c.objc.
Unable to determine concrete GCC compiler for file /Users/alexanderstone/Desktop/Development/RestKit/Vendor/NXJSON/NXJsonSerializer.m of type sourcecode.c.objc.
我已经检查了两个项目build设置,它们看起来都是正确的 - LLVM 5.0 被选为两者的编译器。
此外,我检查了编译器提示的 .m 文件,但没有看到任何对 GCC 的引用。有一些 ASSERT()
和其他宏,但我不知道它们是否特定于编译器。
当所有子项目似乎都设置为 llvm5.0 时,如何解决 xCode 5 中缺少 llvmgcc4.2 编译器的问题?
最佳答案
Found this similar question 。对我来说,解决方案是转到编辑器>验证子项目和 Restkit 项目的项目设置。
关于ios6 - 当编译器设置为 LLVM 5.0 时,iOS xCode5 不支持的编译器 'com.apple.compilers.llvmgcc42' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21732416/