Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I downloaded this sample project (http://tunein.com/mobile/ios/tunein_radio_source.zip), but when compiling, I am getting in the ffmpeg library this error:

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

Even when changing to LLVM, I am getting the exact same error.

Any suggestion?

Meir

like image 696
Meir Avatar asked Feb 28 '12 17:02

Meir


Video Answer


1 Answers

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 132
sinh99 Avatar answered Oct 07 '22 01:10

sinh99