ios - React-Native xcrun : error: Failed to locate 'instruments' in Xcode 13

标签 ios xcode react-native xcode13

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。

关于ios - React-Native xcrun : error: Failed to locate 'instruments' in Xcode 13,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69633826/

相关文章:

iphone - 如何在 iOS Gamecenter match.participants 中找到已满的座位?

objective-c - 如何将主题标签附加到使用 fileURLWithPath 获取的本地 html 文件 URL?

javascript - <Provider> 不支持动态更改 `store`

javascript - 如何在 React-Native 中将 subview 向左对齐并保持均匀的空间?

react-native - 在 subview 中水平滚动时,如何防止父 Flatlist 的垂直滚动?

ios - 用于在锁定屏幕上向左滑动的 API - iOS 8

ios - 如何在一个方向快速自动滚动 UICollectionview?

ios - 带有 xcode 8 的 Alamofire 2.0

xcode - Swift:如何在 Playground 中绘制 UI?

ios - 当我从自定义构建配置存档时缺少文件