xcrun: error: unable to find utility “instruments”, not a developer tool or in path

Total
0
Shares

React Native throws error, “xcrun: error: unable to find utility “instruments”, not a developer tool or in path” on iOS when command line tools location is not set. The exact error looks like this –

Found Xcode project TestProject.xcodeproj
xcrun: error: unable to find utility "instruments", not a developer   
tool or in PATH

Command failed: xcrun instruments -s
xcrun: error: unable to find utility "instruments", not a developer 
tool or in PATH

You will get the error when you run command – react-native run-ios.

Follow these steps to solve this issue –

  1. Open XCode.
  2. Select XCode menu.
  3. Open Preferences.
  4. Goto Locations tab.
  5. You will find command line tools option. Select latest XCode version from drop down menu.
  6. Exit XCode.

    Tweet this to help others

If you want to do it with terminal then follow this –

  1. If XCode downloaded, run this command:

    sudo xcode-select -s /Applications/Xcode.app
  2. If XCode not installed:

    xcode-select --install

    Accept license using this:

    sudo xcodebuild -license accept

This will solve your issue of xcrun: error: unable to find utility “instruments”, not a developer tool or in path.

Sign Up for Our Newsletters

Get only the best articles delivered to your mail

You May Also Like

React Native background color

In React Native background color can be applied using background-color css property. The only difference is that we need to use camel case as backgroundColor. Check out the code –…
View Post