I have the same error -- runs for a little bit, then errors out. Also, can't attach to a running process anymore.
What gives, Apple?
Same error for me here but for a macos app on xcode 12.2. I have the error "An error occurred trying to capture Leaks data" after a couple of seconds running in Instruments.
I have experienced the same issue. Here are some more details :
Allocations instrument: Failed to attach to target: Failed to attach to target process.
Leaks instrument: An error occurred trying to capture Leaks data
Time Profiler instrument: Runs perfectly fine
One workaround I have used is to profile in debug rather than release by changing the scheme configuration : Edit Scheme > Profile > Info > Build Configuration.
Same error for me