2014-02-12 42 views
6

我试图打开一个使用iOS 6.0构建的旧项目。该项目用于编译正常,但当在xCode 5下打开时,我得到这个神秘的错误信息。iOS xCode5当编译器设置为LLVM 5.0时,不支持的编译器'com.apple.compilers.llvmgcc42'错误

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. 

我检查了两个项目构建设置,他们似乎正确 - LLVM 5.0被选定为编译器两种。

enter image description here

enter image description here

另外,我查了.m文件是编译器的抱怨,并没有看到任何GCC参考那里。有一些ASSERT()和其他宏,但我不知道它们是否是编译器特定的。

如何解决xCode 5中缺少llvmgcc4.2编译器时,所有子项目似乎都设置为llvm5.0?

回答

8

Found this similar question。对于我来说,解决方案是去编辑器>验证项目设置为孩子和Restkit项目。

+1

未找到编辑器 - >在Xcode 8.3.3中验证 –

2

此外,对于在XCode 7和架构'i386'中打开,将编译器设置为'Default compiler(Apple LLVM 7.1)'是一种解决方案。

3

这个问题的一个解决方案是,我解决了当我面临这个问题只是去生成设置 - >生成选项 - >编译器为C++设置为默认,你的问题将被解决。 see attached