instruments Error using CLI

While running instruments using CLI we are seeing below error: command: xcrun xctrace record --template Leaks --launch application --output recording.trace -e DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib

Run issues were detected (trace is still ready to be viewed):

  • [Error] An error occurred trying to capture Leaks data.

    • [Error] Failed to generate memory graph for pid 7828: failed to create a VMUTaskMemoryScanner, probably because the target's libmalloc hasn't been initialized

Recording failed with errors. Saving output file...

System details: Xcode 15.4 Mac :Intel processors MacOs:14.5

instruments Error using CLI
 
 
Q