I am 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 ask the user for permission and does not display the application name in the system settings> Security and Privacy. What do I need to check this out? I could try adding the debug version manually in System Preferences, but how do I know if it works properly when it is released to the public? Is there any way to check this? I don’t see any clues at all.
source
share