我正在关注 React Native 官方网站上的教程。
使用以下内容构建我的项目:
react-native run-ios
我收到错误:
Found Xcode project TestProject.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
虽然,当我从 .xcodeproj 运行应用程序时,一切正常。
有什么建议么?
原文由 JacobSiegel 发布,翻译遵循 CC BY-SA 4.0 许可协议
查看此链接( 运行 react-native run-ios 发生错误? )。
Command line tools
的位置似乎有问题。在 Xcode 中,依次选择 Xcode 菜单、首选项和位置选项卡。从下拉列表中选择您的 Xcode 版本并退出 Xcode。