我正在使用官方的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运行应用程序,一切正常。
有什么建议么?
查看此链接:
https://github.com/facebook/react-native/issues/7965.它似乎是命令行工具的位置的问题。
从下拉列表中选择您的Xcode版本并退出Xcode。