Unsupported compiler 'com.apple.compilers.llvmgcc42' xcode 5 DP

I have a project containing Geos and Proj in it. Prior to Xcode 5, I compiled them with the LLVM GCC 4.2 compiler, but in Xcode 5 DP I got an error about an unsupported compiler. Choosing a different compiler for compilation errors depends on the syntax. How can I fix this problem?

+46
ios projects-and-solutions xcode5 llvm-gcc geos
Jun 18 '13 at 7:27
source share
6 answers

A) Stop using Xcode 5

or

B) Correct code errors

I know that you will not like this answer, but Apple has repeatedly stated its displeasure to GCC and stated that it is an outdated technology.

-22
Jun 18 '13 at 9:07 on
source share

Change your compiler to C / C ++ / Objective-C:

Xcode > Target > Build Settings > Build Options > Compiler for C/C++/Objective-C

Select Default compiler (Apple LLVM xy)

+231
Jun 26 '13 at 10:18
source share

It works for me, I hope it helps you too. For Xcode 5.1
Go to build settings -> Assembly options -> Compiler for C / C ++ / Objective-C
Select Default Satisfaction (Apple LLVM 5.1)

+37
Dec 27 '13 at 10:17
source share

One solution to this problem is that I decided when I came across this problem, just go to "Build Settings" → "Build Settings" → "Compiler for C ++" set to "Default" and your problem will be resolved. see attached

+5
Mar 16 '17 at 17:06
source share

X-code → Click on your project

Select [Build Settings] → [Build Settings] → Compilers for C / C ++ / Objective-C -> Default Compiler (Apple LLVM digit.digit)

+3
Jul 30 '16 at 13:56
source share

If you compile from the command line (for example, when creating GEOS and proj4), the following command will find the correct compiler for you and run it.

 xcrun --sdk iphoneos clang 

Or use iphonesimulator instead of iphoneos if you want to create for sim.

0
Jul 09 '13 at 20:45
source share



All Articles