Unsupported compiler 'GCC 4.2' selected for architecture 'armv7'

运行一个测试demo的时候,发现编译不通过

提示错误:Unsupported compiler 'GCC 4.2' selected for architecture 'armv7'

看了下觉得应该是编译类型的选择错误

于是进行下面的尝试:

Project -> Build Settings.  Then under Build Options, there is an entry for Compiler for C/C++/Objective-C.  Choose Apple LLVM compiler 3.0.

然后clean->build,工程能够正常编译了

看了下网上相同情况的还有,同样的解决方法也可以

Unsupported compiler GCC 4.2 selected for architecture i386

你可能感兴趣的:(apple,gcc,测试,Build,compiler)