AXSwift
AXSwift copied to clipboard
Always getting error AXError.APIDisabled
I've allowed accessiblity but always getting error AXError.APIDisabled
as you can see here:

Should I be signing or adding some special permissions?
P.S. I'm running in debug from xcode
. Does this impact somehow?
Sandbox? I think you need to change your app's entitlement file to App Sandbox = NO
Ill try that. In any case i deleted all sandbox setttings and also attempted with the example and encountered similar issue
Thanks @soundflix .
I was already using the setting you suggested App Sandbox = NO
So it turns out that for some reason, subsequent app launches will always lead to this error.
I was able to resolve this by deleting the entry altogether from the accessibility settings and rebuilding (running) the app. I will again get the dialogue asking for access
At that point, I can again toggle the button and relaunch the app and things will start working again but only for that launch.
The subsequent runs will fail again 😭 until I delete the setting, relaunch, and repeat the above steps (toggle the button, kill the app, relaunch, rinse and repeat) . Not sure why this occurs.

![]()
Signing needs to choose an Apple developer account. I guess you don't have an Apple developer account.
will this solve the AXError.APIDisabled problem?