-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Failed to gain authorization" #40
Comments
I'm still not running big sur anywhere, although I will be in a week or so. |
You have to replace the ad-hoc signature of the binary to be profiled with a new one that has the
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.get-task-allow</key>
<true/>
</dict>
</plist>
|
@hkratz this sounds like something I should be able to do automatically as part of the tool? |
@cmyr Yes. It would probably be best if you could do this by setting some magic linker options for rustc. The linker is the one doing the ad-hoc signing in the first place so I assume it can also include the entitlement somehow. |
I think we could hack around this by doing an adhoc signature that's mentioned in this blog post https://eclecticlight.co/2020/08/22/apple-silicon-macs-will-require-signed-code/ |
When I try to run an Allocations profile I get the following error:
I'm on an M1 Mac running macOS Big Sur 11.4.
I suspect that it's related to this issue: https://developer.apple.com/forums/thread/681687
But if that were the case then it seems likely other users of
cargo-instruments
would be hitting it as well. Is anyone else hitting this issue?The text was updated successfully, but these errors were encountered: