Disclaimer: This article is a blogger original article, reproduced, please indicate the source of the article. https://blog.csdn.net/SunFlowerInRain/article/details/80613170
Xcode command line and script execution associated packing
You can execute the following command
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer