5

【踩坑】xcodebuild命令报错

 1 year ago
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.
neoserver,ios ssh client

【踩坑】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-toolsxcodebuild命令,而期望的是Xcode.appxcodebuild命令
  • 重新手动指定Xcode.app环境的目录
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

博客园——wangju003


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK