xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH

xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH
或者
xcrun: error: unable to find utility "xctest", not a developer tool or in PATH
解决办法

打开Xcode--Preferences--Locations

在command line tools中选择相应的版本

xcrun: error: unable to find utility
Snipaste_2019-10-10_11-15-00.png

你可能感兴趣的:(xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH)