mac-q&aCan’t compile C program on a Mac after upgrade to MojaveCMake not compiling after macOS 10.14 Mojave update CMake not compiling after macOS 10.14 Mojave update

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

CMake not compiling after macOS 10.14 Mojave update

Problem solved: just download Command Line Tools (macOS 10.14) for Xcode 10. Hope that solves other people’s problems.

https://developer.apple.com/download/more/

clion 应该检测到这个路径
/Library/Developer/CommandLineTools/usr/bin/c++
/Library/Developer/CommandLineTools/usr/bin/cc