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

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

在WebStorm中运行React-native(iOS)工程时出现如下错误,
1.解决方法:
在终端执行如下命令

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/

注意:前提是你已经安装了xcode软件
2.导致原因
在安装watchman之前是可以正常运行react-native run-ios 的,但是前段时间进行安装了watchman软件之后,就出现了这种问题提示,使用上面命令顺利解决。

猜你喜欢

转载自blog.csdn.net/suwu150/article/details/80923245