mac 上运行 react-native 报错

Mac上已经安装了 react-native nodejs
执行了命令 react-native init firstDemo
cd firstDemo
之后执行了 react-native run-ios 这个命令之后 终端报错 如下
Found Xcode project firstApp.xcodeproj
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

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

这个报错怎么解决呢

阅读 3.3k
1 个回答

环境变量没配置吧.
报错说PATH这个路径下没有开发工具.
另外xcode不要删.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题