升级Xcode 15 beta 过后,发现运行cmake报错了,
后来下载安装了Command_Line_Tools_for_Xcode_15_beta_7.dmg 和cmake插件包还是报错,
报错提示说:
CMake Error at CMakeLists.txt:9 (project): No CMAKE_CXX_COMPILER could be found.
那就在cmake的时候指定了CMAKE_CXX_COMPILER="clang++"过后继续报错提示:
You have not agreed to the Xcode license agreements, please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode license agreements.
原来是需要agreed一下,
运行:sudo xcodebuild -license
然后一直按空格到底,输入agree解决