I'm trying to use the Accessibility API and have this code:
NSDictionary *options = @{(__bridge id) kAXTrustedCheckOptionPrompt : @YES};
BOOL accessibilityEnabled = AXIsProcessTrustedWithOptions((__bridge CFDictionaryRef) options);
This always returns no, however it does not prompt the user for permission nor does it display the app's name in System Preferences > Security & Privacy. What do I need to test this? I could try and add the debug version manually into System Preferences but how do I know that this will work properly when released to the public? Is there any way to test this out? I am not seeing any prompt at all.
From Apple Developer Forums:
It appears, in 10.13.3 at least, that applications which are using the app sandbox will not have the alert shown. If you turn of app sandbox in the project entitlements then the alert is shown. - haikuty
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With