Enter at the terminal:
cocos run --proj-dir .. -p mac
The error information is as follows:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:30 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:30 (project):
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "/Users/roy/Desktop/workspace/CocosProject/MyGame/mac-build/CMakeFiles/CMakeOutput.log".
See also "/Users/roy/Desktop/workspace/CocosProject/MyGame/mac-build/CMakeFiles/CMakeError.log".
Solution:
sudo xcode-select --reset
Read More:
- [Solved] CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
- [Solved] QT cmak Compile Error: CMake Error: The source.. does not match the soused
- Cmake Compile opencv error: The system is: Windows – 10.0.19042 – AMD64 (Log File)
- [Solved] Opencv Compile Error: (CMake Error: The following variables are used in this project, but they are set to not)
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- [Solved] cmake: symbol lookup error: cmake: undefined symbol: _ZN4Json5ValueC1ERKSs
- How to Solve cocos2dx msb3073 Error
- Cocos creator custom engine NPM Error [How to Fix]
- How to Solve cocos opens other items error
- Cmake Error The C compiler identification is GNU 7.5.0 — The CXX compiler identification is unknown
- How to Solve Cocos creator label text is too many error
- [Solved] CMake Error at CMakeLists.txt:92 (add_subdirectory)
- [Solved] ORB_SLAM3 Compile Error: opencv4.0 not found four
- [Solved] CMake Error: The current CMakeCache.txt directory is different than xxx
- CMake Error: The source directory “opencv Install Catalog“ does not appear to contain CMakeLists.txt.
- [PX4 Bug] make px4_sitl gazebo Error: CMake Error: The following variables are used in this project
- [Solved] CMake Error: Could not create named generator Visual Studio 16 2019 -A Win64
- How to Solve Msys2/mingw64 Run cmake GUI Error
- [Solved] CMake Error Cannot specify link libraries for target “variational“ which is not built by this projec
- [Solved] CMake Error: Could not create named generator Visual Studio 16 2019