Fix Cocos Creator run cmake failed and xcodebuild Not Found on iOS
A scripted Cocos Creator iOS export failed with:
| |

The message is misleading: the problem was not the locally installed CMake. The important line was:
This normally means Xcode or its command-line tools are missing or incorrectly configured.
Install the command-line tools:
| |
Then select the developer directory:
| |
Restart the terminal or Mac after applying the configuration.