Trying to profile my mac app with instruments. I am not able to start with "Allocations" or "Leaks", I'm asked for my admin password and then immediately seeing an error in the log: "Failed to attach to target: Failed to attach to target process." "Time Profiler" seems to work ok.
Changed the build configuration for profiling to "Debug" in the scheme seemed to help and after some digging I found out this is happening because the debug build has com.apple.security.get-task-allow entitlement while the release build doesn't. Great, so I've added this entitlement to the entitlement file but still no go, checked the signature and saw that com.apple.security.get-task-allow was removed. Did some more digging and read somewhere that you need to set CODE SIGN INJECT BASE ENTITLEMENTS to NO. Did that but still no luck.
Does anyone have any idea how to prevent Xcode from stripping this entitlement in the release build? I really want to profile my app using a release build.
Changed the build configuration for profiling to "Debug" in the scheme seemed to help and after some digging I found out this is happening because the debug build has com.apple.security.get-task-allow entitlement while the release build doesn't. Great, so I've added this entitlement to the entitlement file but still no go, checked the signature and saw that com.apple.security.get-task-allow was removed. Did some more digging and read somewhere that you need to set CODE SIGN INJECT BASE ENTITLEMENTS to NO. Did that but still no luck.
Does anyone have any idea how to prevent Xcode from stripping this entitlement in the release build? I really want to profile my app using a release build.