Mac Catalyst : Profiling with Instruments.app

Hi,

I am crafting Mac-Catalyst app. I wanted to attach my app to Instruments app to profile the status of my app. (Leaks was the target)
But Instruments showed an error below and next worked.
Okay, This could fix by disabling SIP, but I do not want to do it.This is my application so that I think I could modify some items in the entitlements and attach the instruments without disabling SIP.

Error message:
Error: Target process is marked restricted and cannot be traced while System Integrity Protection is enabled.


Any helps are welcome.


Kaz

Hi ioue,

Can you verify what kind of that you're not using your deployment profile for Profile scheme and you didn't override CODE_SIGN_INJECT_BASE_ENTITLEMENTS build setting? It should be set to YES.

You can run codesign -dvvv --entitlements=- ./<>.app and check if get-task-allow is listed in there.

Please let me know if it solves your problem.

Kacper
Mac Catalyst : Profiling with Instruments.app
 
 
Q