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

xcrun: error: unable to find utility “simctl”, not a developer tool or in PATH

今天在全新mac上搭建ios自动化环境
执行 sh ./Scripts/bootstrap.sh -d 时提示“xcrun: error: unable to find utility “simctl”, not a developer tool or in PATH ”错误

解决办法:
意思是环境变量少developer tool, 解决方法就是打开xcode的设置,
Preferences > Locations > Command Line Tools 中选择下当前的xcode,可能会提示输入密码。完成即可。

2.brew 比 npm好用!!!!尽量用brew

3.appium-webdriverAgent所在地址改变:
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent

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