尝试运行cmake来创建Xcode项目,使用:
cmake -G Xcode ..这在Xcode 13和更低版本下运行得很好。但是在Xcode 14测试版下,突然间,如果失败了,我将得到以下输出:
-- Found Git: /usr/bin/git (found version "2.32.1 (Apple Git-133)")
-- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.9", minimum required is "3")
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:17 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:17 (project):
No CMAKE_CXX_COMPILER could be found.来自CMakeFiles/CMakeError.log的更多细节包括:
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
error: An empty identity is not valid when signing a binary for the product type 'Command-line Tool'. (in target 'CompilerIdC' from project 'CompilerIdC')这是怎么回事,我该怎么解决呢?
发布于 2022-11-11 18:10:01
更新到至少cmake v3.23.3;cmake内部将CODE_SIGN_IDENTITY设置为"-“。在v3.23.3之前,试图设置CODE_SIGN_IDENTITY="-“仍然会产生空标识错误。
https://stackoverflow.com/questions/72746725
复制相似问题