AXSwift icon indicating copy to clipboard operation
AXSwift copied to clipboard

Always getting error AXError.APIDisabled

Open avnerbarr opened this issue 1 year ago • 5 comments

I've allowed accessiblity but always getting error AXError.APIDisabled

as you can see here:

image

Should I be signing or adding some special permissions?

P.S. I'm running in debug from xcode. Does this impact somehow?

avnerbarr avatar Mar 16 '23 09:03 avnerbarr

Sandbox? I think you need to change your app's entitlement file to App Sandbox = NO

soundflix avatar Mar 16 '23 15:03 soundflix

Ill try that. In any case i deleted all sandbox setttings and also attempted with the example and encountered similar issue

avnerbarr avatar Mar 19 '23 07:03 avnerbarr

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. Pasted_Image_19_03_2023__14_22

avnerbarr avatar Mar 19 '23 12:03 avnerbarr

image Signing needs to choose an Apple developer account. I guess you don't have an Apple developer account.

GanZhiXiong avatar Apr 25 '23 07:04 GanZhiXiong

image

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?

xiaoqiao avatar Jul 12 '23 17:07 xiaoqiao