I have a swift 5.4 package manager project with an executable target I want to profile in Instruments.
I Cmd+I to profile which launches instruments. I pick allocations.
then push the record button.
im asked to authorise and doesn’t matter whether I use fingerprint or password I always get the error:
(before run started) Failed to gain authorization
any ideas?
instruments 12.5 xcode 11.5 swift 5.4 2020 M1 MBP 13”
Hi there!
This is most likely due to your application not being signed with a debugging entitlement.
If you run: codesign -dvvv --entitlements=- <path-to-app>
— do you see get-task-allow entitlement listed in there?
If not — there are a few things you should check for:
— Are you signing your Release scheme build with a developer certificate?
— Make sure you're not overriding CODE_SIGN_INJECT_BASE_ENTITLEMENTS
build setting, it should be set to YES by default.
Please let us know what's the outcome and we'll continue our investigation based on the codesign output.
Kacper