我正在尝试在模拟器上启动 React native 应用程序,当我在终端 npm run debug:ios
中运行此命令时,我不断收到此错误
Command failed: xcrun instruments -s
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
虽然我的问题是我没有安装 xcode 命令行,但我安装了。
这是什么问题?
最佳答案
You need to launch XCode and agree to the terms first. Then go to
Preferences > Locations
and you'll see a select tag for Command Line Tools. Click this select box and choose the version of XCode you'll be using.After this you can go back to the command line and run
react-native run-ios
关于ios - 仪器中的 xcrun 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43152079/