. Advertisement .
..3..
. Advertisement .
..4..
I get the error: xcrun: error: unable to find utility “instruments”, not a developer tool or in path when I try to run the program below:
react-native run-ios
The error appears the system notifies as follows:
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
I tried to solve it with another sample. I got the reference in the community forum, but it still returned an invalid result. If someone knows the solution, please give me the support. Thanks!
The cause: This error appears because of the place of
Command line tools
.Solution: You can resolve this error by doing the following process:
You might need to install the Command Line Tools or change its location.
Via command line
To set the path, you will need Xcode installed.
You may have to install the command-line tools first if they aren’t installed.
Before installing command-line tools, you may be required to accept the Xcode licence.
Via Xcode
You can also adjust the
Command Line Tools
setting using Xcode (Xcode > Preferences > Locations
).