【问题标题】:React-Native xcrun: error: Failed to locate 'instruments' in Xcode 13React-Native xcrun:错误:无法在 Xcode 13 中找到“仪器”
【发布时间】:2021-10-19 15:37:41
【问题描述】:

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

有人有解决办法吗?

【问题讨论】:

标签: ios xcode react-native xcode13


【解决方案1】:

由于它已在 xcode 13 中删除,因此您有两种选择。您可以将您的 RN 版本升级到 0.65.x 以修复此问题或降级到 xcode 12。

【讨论】:

    猜你喜欢
    • 2021-10-22
    • 2021-10-04
    • 2021-11-17
    • 2021-11-16
    • 1970-01-01
    • 1970-01-01
    • 2015-05-20
    • 2016-10-27
    相关资源
    最近更新 更多