I am trying to launch a react native app on simulator and when I run this command in terminal
npm run debug:ios
I keep getting this error
Command failed: xcrun instruments -s
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
I though my problem is that I don't have the xcode command line installed, but I do.
What is this problem?
This fixed it for me: http://www.seanbehan.com/how-to-fix-xcrun-error-unable-to-find-utility-instruments-not-a-developer-tool-or-in-path/
You need to launch XCode and agree to the terms first. Then go to
Preferences > Locations
and you'll see a select tag for Command Line Tools. Click this select box and choose the version of XCode you'll be using.After this you can go back to the command line and run
react-native run-ios
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.