5
【踩坑】xcodebuild命令报错
source link: https://en.loli.fj.cn/2022/11/24/xcodebuild%E5%91%BD%E4%BB%A4%E6%8A%A5%E9%94%99/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
【踩坑】xcodebuild命令报错
2022-11-24
xcodebuild命令报错:xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
- 先安装的
xcode-commandline-tools
后安装的Xcode.app
- 在执行
xcodebuild
命令时默认仍然调取的xcode-commandline-tools
的xcodebuild
命令,而期望的是Xcode.app
的xcodebuild
命令
- 重新手动指定
Xcode.app
环境的目录
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK