Search code examples
iosxcodecompiler-errorsbuild-error

XCode 8.3.1 Missing default C++ ObjectiveC compiler. Cannot build projects


After upgrading to XCode 8.3.1 I am getting an error:

Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64'

screenshot of the error

Suggestions to set the compiler as default does not help, since the XCode does not see default compiler:

screenshot that there is no default compiler

Is there any solution?

Upd:

Actually, there is the compiler in the system:

terminal screenshot

Upd 2:

And one more screenshot with errors explained

errors screenshot

Update 3:

I created new XCode project from scratch (Single view) and it does not compile.

here is github repo without .gitignore

So all project files should be there

And screenshot that shows values of GCC_VERSION= is empty

screenshot of error

Update 4:

Updating to Version 8.3.2 (8E2002) does not help, Unfortunately ((


Solution

  • The only thing that has helped me was the total erasing the mac, installing the MacOS Sierra and after, XCode fresh installation.

    Now I am able to compile projects - the gcc compiler has become visible and acceptable to XCode build tool.

    (:very sad:)