xcode-select: error: tool 'xcode
2021-03-05 本文已影响0人
送我迷迭香
在运行脚本的时候遇到一个问题,报错
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
解决方案:
1.执行sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
切换到当前Xcode路径下
2.执行xcodebuild -showsdks

3.执行
xcrun --sdk iphoneos --show-sdk-path

4.重新运行脚本