
我试图在模拟器上启动一个本机应用程序,当我在终端npm run debug:ios中运行这个命令时,我总是会收到这个错误。
Command failed: xcrun instruments -s
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH我认为我的问题是我没有安装xcode命令行,但我安装了。
这是什么问题?
发布于 2018-07-11 09:43:33
这个帮我修好了:http://www.seanbehan.com/how-to-fix-xcrun-error-unable-to-find-utility-instruments-not-a-developer-tool-or-in-path/
您需要首先启动XCode并同意该条款。然后转到
Preferences > Locations,您将看到命令行工具的select标记。单击此复选框并选择要使用的XCode版本。 之后,您可以返回命令行并运行react-native run-ios
https://stackoverflow.com/questions/43152079
复制相似问题