Xcrun instruments not found xcode 13

I am having a react native app which runs the command "xcrun instruments" while building. However, this command fails with error

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

when i run the command separately from terminal, I am getting same error.

I have checked that instruments is present and the standalone version and the version opening from xcode are same and matching with xcode version (13). Also, verified current used xcode is 13 from locations tab. Tried after clearing derived data as well. Also made sure, the path of xcode select runtime is set to commandLineTools path.

Also, I have verified xcode command line tools installation and accepted license and tried all solutions mentioned in

https://stackoverflow.com/questions/39778607/error-running-react-native-app-from-terminal-ios

none working. This is affecting business. Please suggest.

Answered by DTS Engineer in 689236022

Did you see this in the release notes?

Deprecations The deprecated instruments command-line tool has been removed; instead, use xctrace.

Accepted Answer

Did you see this in the release notes?

Deprecations The deprecated instruments command-line tool has been removed; instead, use xctrace.

so, aside from quoting the deprecation note, what's the fix?

Xcrun instruments not found xcode 13
 
 
Q