ios - React-Native xcrun:错误:无法在 Xcode 13 中找到“仪器”
问题描述
instruments
Xcode 13 中删除了命令行工具,Apple 要求xctrace
改用。但我不确定如何在终端上运行 React-Native 项目时修复它。
npx react-native run-ios --device "iPhone"
实际上,我看到以下错误。
xcrun: error: Failed to locate 'instruments'.
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
error Command failed: xcrun instruments -s
有没有人有办法解决吗?
解决方案
由于它已在 xcode 13 中删除,因此您有两个选择。您可以将您的 RN 版本升级到0.65.x
已修复此问题的版本或降级到 xcode 12。
推荐阅读
- bash - cygwin bash:意外的EOF
- zeit-pkg - zeit-pkg 生成的可执行文件需要分发哪些文件?
- tomcat - Tomcat 启动问题 - Bean 创建异常
- browser-cache - 如何在浏览器中删除 Magento 产品详细信息存储?
- sql - 将多行中的多个文本字段分组为一列
- python - 格式化为 base64 到 base64 对象的字符串
- javascript - Internet Explorer 上的窗口 hashchange 事件未触发
- javascript - 使用 axios 响应在 vuejs 中设置数据对象
- html - HTMLTestRunner 不工作
- python - 在python的电子邮件正文中嵌入数据透视表作为图片