Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

iphone

Just installed new version XCode 4.2 onto my Mac. I tried compiling my project but got the following error:

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

Tried selecting arm7 in drop down for architechture in project and target settings. (The list actually shows just arm 7) still no use.

Please help.

Thanks

like image 853
iOSDev Avatar asked Dec 16 '11 06:12

iOSDev


2 Answers

you should actually select the LLVM compiler under "Compiler Version" instead of trying to set "Valid Architectures"

like image 108
Saurabh Passolia Avatar answered Oct 22 '22 13:10

Saurabh Passolia


xcode build errors:

Unsupported compiler ‘GCC 4.2′ selected for architecture ‘i386′

Solution:

This can be caused by importing a project for a pre- iOS 5 SDK into a copy of xcode with iOS 5 SDK only.

To fix, click your

Project -> Build Settings.  

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

There is a chance this could effect other aspects of your binaries as you are using a new compiler, so YMMV. That being said, it’s so far caused no issues for me.

like image 30
sinh99 Avatar answered Oct 22 '22 12:10

sinh99