react-native unable to find utility "instruments", not a developer tool or in PATH

在终端输入命令react-native run-ios来运行ReactNative项目的时候报错:

unable to find utility “instruments”, not a developer tool or in PATH.

查询资料发现导致这个命令无法启动模拟器,所以先执行下面的查找设置命令代码,设置Xcode:

通过root用户来设置。

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

react-native unable to find utility "instruments", not a developer tool or in PATH

再启动运行命令就ok了 react-native run-ios。

Related Posts

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注