weex unable to find utility "simctl" 报错解决方案

weex debug 报错 unable to find utility “simctl”

1
Error: simctl error running 'list': xcrun: error: unable to find utility "simctl", not a developer tool or in PATH


直接命令行执行以下命令即可:

1
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/

同样也可以通过 xcode 进行设置:
在Xcode>preferences>Locations下,设置 Command line Tools 之后再运行即可。