在终端输入命令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。

相关文章:

  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-01-15
猜你喜欢
  • 2021-05-22
  • 2021-07-29
  • 2021-09-25
  • 2021-07-01
  • 2021-04-12
相关资源
相似解决方案