1 升级Xcode 13 之后 ,已安装包的形式升级 ,fastlane 打包报错:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory
原因是: 安装了xcode ,路径并非系统默认路径导致 ,把xcode目录改为安装目录
sudo xcode-select --switch /Applications/Xcode.app
switch 后边的部分是你的Xcode自定义的路径
2 升级Xcode13 后 xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer)的解决办法:
sudo xcode-select -r
sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
xcode-select -p