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

Hello Unity iOS Community,

Using Unity 3.4.2 and Xcode 4.2, I am getting this error when trying to build in Xcode.

Unsupported compiler ‘GCC 4.2’ selected for architecture ‘armv7’

This happens whether I choose “Unity-iPhone” or “Unity-iPhone-simulator”, which is the fix suggested in this forum post for a very similar problem, but related to i386 architecture instead of armv7

http://forum.unity3d.com/threads/112510-Unsupported-compiler-GCC-4.2-selected-for-architecture-i386?highlight=Unsupported+compiler

Any help much appreciated.

D-+<

change build settings - Compiler for C/C++/Objective-C to Apple LLVM compiler for 3.0

Thanks handsomePATT, that fixed that particular issue, I really appreciate it. You should be called “handsome&helpfulPATT” :slight_smile: Now I have another Xcode error:

[project_path]/Classes/iPhone_GlesSupport.cpp:182:3: error: use of undeclared identifier ‘GL_FRAMEBUFFER_BINDING’ [3]

I’ll search for the solution, but pasted it here just in case you know of it.

Thanks again
D-+<

haha no worries. Ive never seen that one before though.

I figured it out, my iPad is listed twice in the active scheme. If I choose the second listing, it works fine. Choose the first and it gives that error. No idea why. I posted details to this thread, where someone had the same problem:
http://forum.unity3d.com/threads/115614-Continuous-Build-and-Run-Error.

awesome thanks thats good to know

Thanks delighted, that worked for me as well!