ios - 仪器中的 xcrun 错误

标签 ios xcode react-native

enter image description here我正在尝试在模拟器上启动 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 命令行,但我安装了。

这是什么问题?

最佳答案

这为我修复了它:http://www.seanbehan.com/how-to-fix-xcrun-error-unable-to-find-utility-instruments-not-a-developer-tool-or-in-path/

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/

相关文章:

ios - Swift iOS - 如何从 AVPlayerItemStatus 访问错误?

ios - 在 Xcode 10 上运行通用框架的脚本

iphone - 选择器值在部分中所有行的文本字段中重复?

android - 使用 RN 使用条件语句隐藏元素

javascript - 下一次按下时关闭 React-Native 中的下拉菜单

ios - UIScrollView 滚动时更改 contentInset

ios - 尝试在 Swift 中找到何时关闭微调器的正确事件

ios - 如何更新 CABasicAnimation 的 toValue/fromValue 以使其在更改时更平滑?

ios - 使用 Storyboard在 UILabel 中的文本前后添加一个空格

xml - 如何在 React Native ( JavaScript ) 中创建 XML 文档?