"an error occurred trying to capture leaks data"

When I try to run my iOS app through the Leaks instrument in the simulator, very shortly after launch, without fail, it will stop with the error "An error occurred trying to capture Leaks data"


All the disclosure says is "Error retrieving leak information." I can't find any other information. Checking the console view, it just shows a normal run up until "<End of Run>"


I've tried doing a clean build, deleting my derived data, uninstalling the app from the simulator, restarting Xcode, rebooting. I have no idea what to do.

same issues, Xcode 12.4. iOS14.5.1 or iOS15.0.1

`An error occurred trying to capture Leaks data.   
Unable to invoke -[<DTLeaksService:0x123d3c180> requestLeaskForPid:context:provideBacktraces:- it does not respond to the selector]`

5 years later, still the same problem.

Xcode 16.1. Same error: "Failed to attach to target process", "Failed to acquire memory location for pushing shared memory into target." Feedback issue: FB15773948.

I am facing the same issue in memory debug of Xcode and even via instruments

macOS Version 15.5 (Build 24F5068b) Xcode 16.3 (23785) (Build 16E140)

I am encountering this when attempting to inspect the memory graph on Xcode 16.2 (16C5032a)

"an error occurred trying to capture leaks data"
 
 
Q