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/