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.

Accepted Reply

Did you see this in the release notes?

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

  • Thanks for the pointer, then it seems I may have to upgrade react native to 0.65?

  • so what's the fix?

Add a Comment

Replies

Did you see this in the release notes?

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

  • Thanks for the pointer, then it seems I may have to upgrade react native to 0.65?

  • so what's the fix?

Add a Comment

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

  • Update your invocation to use the xctrace command instead of the instruments command.

Add a Comment