我的Xcode版本是7.2.1,我不知道为什么我的gcc编译器既不能在Clion也不能在Xcode中工作。 我在终端试过了,没关系。 但是,在我看来,当我想建立这个项目时,事实证明:
Error:Configuration MinSizeRel
The C compiler "/Applications/Xcode 7.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/benji/Library/Caches/CLion12/cmake/generated/39d888a/39d888a/MinSizeRel/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_d3d16/fast"
/Applications/Xcode 7.2.1.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_d3d16.dir/build.make CMakeFiles/cmTC_d3d16.dir/build
make: /Applications/Xcode: No such file or directory
make: *** [cmTC_d3d16/fast] Error 1
CMake will not be able to correctly generate this project.
感谢您的帮助。