XCode 8.3.1 There is no default C ++ ObjectiveC compiler. Unable to create projects

After upgrading to XCode 8.3.1, I get the error:

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

      

screenshot of error

The suggestions to install the default compiler don't help as Xcode doesn't see the default compiler:

screenshot that there is no default compiler

Is there any solution?

Upd:

Actually, the system has a compiler:

terminal screenshot

Update 2:

And one more screenshot with error explanations

errors screenshot

Update 3:

I created a new XCode project from scratch (Single view) and it doesn't compile.

here's a github repo without .gitignore

So all project files should be there

And the screenshot that shows the GCC_VERSION = values ​​is blank

screenshot of error

Update 4:

Upgrading to version 8.3.2 (8E2002) does not help, Unfortunately ((

+3


source to share


2 answers


The only thing that helped me was a complete erase of the mac, installing macOS Sierra and after, a new version of Xcode.

I can now compile projects - the gcc compiler has become visible and acceptable to the Xcode build tool.



(: very sad:)

+1


source


This likely indicates that one of the Xcode caches is corrupted. Try the following:

1) Close Xcode

2) Open terminal



3) Run the following command: rm -r `getconf DARWIN_USER_CACHE_DIR`/com.apple.DeveloperTools

4) Restart Xcode

If you don't mind, I would appreciate it if you could report a bug at https://bugreport.apple.com . Attach a build log that shows the error you are seeing now and please also indicate if the steps I gave you solved the problem. Thank!

0


source







All Articles