Skip to content
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

Always getting error AXError.APIDisabled #39

Open
avnerbarr opened this issue Mar 16, 2023 · 5 comments
Open

Always getting error AXError.APIDisabled #39

avnerbarr opened this issue Mar 16, 2023 · 5 comments

Comments

@avnerbarr
Copy link

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?

@soundflix
Copy link

soundflix commented Mar 16, 2023

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

@avnerbarr
Copy link
Author

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

@avnerbarr
Copy link
Author

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

@GanZhiXiong
Copy link

image

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

@xiaoqiao
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants