gpt4 book ai didi

ios - 仪器中的 xcrun 错误

转载 作者:行者123 更新时间:2023-11-28 21:11:11 26 4
gpt4 key购买 nike

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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com