简体   繁体   中英

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

instruments command-line tool has been removed in Xcode 13 and Apple asks to use xctrace instead. But I'm not sure how I can fix it while running the React-Native project on the terminal.

npx react-native run-ios --device "iPhone"

Actually, I see the following errors.

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

Does anyone have a solution?

Since it has been removed in xcode 13 you have two options. You can upgrade your RN version to 0.65.x where this issue is fixed or downgrade to xcode 12.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM