ios6 - 当编译器设置为 LLVM 5.0 时,iOS xCode5 不支持的编译器 'com.apple.compilers.llvmgcc42' 错误

标签 ios6 ios7 xcode5 llvm-gcc llvm5

我正在尝试打开我的一个旧项目,该项目是使用 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 被选为两者的编译器。

enter image description here

enter image description here

此外,我检查了编译器提示的 .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/

相关文章:

iphone - 更改 Safari 和 Chrome 中 iOS 7 状态栏的颜色

ios7 - 平行四边形内的流uitextview(iOS7)

uibutton - xcode5中自定义按钮

c++ - Xcode C++,无法从 main 调用指针返回方法

xcode - 在 Xcode 5 中旋转 Storyboard View Controller

ios6 - libMobileGestalt copySystemVersionDictionaryValue : Could not lookup ReleaseType from system version dictionary

ios6 - Passbook Pass 图像的尺寸是多少?

iphone - Collection View iOS 7

iphone - 如何从主包的资源中获取图像路径

iphone - 应用程序在i0S 6中崩溃,但在iOS 5中没有崩溃