Home > Mobile >  Persist accessibility permissions between builds in xcode 13
Persist accessibility permissions between builds in xcode 13

Time:05-23

I am building a window manager that requires the use of the Accessibility API for macOS. My code works fine if I build the app, grant the debug build accessibility permissions in the Security and Privacy panel, and then run my code. But if I change any code, I have to regrant the permissions manually and it is incredibly laborious to do between each build.

How can I persist the permissions between builds? I see this is an issue elsewhere and I have tried all the tactics I found on Stack Overflow so far.

CodePudding user response:

Figures I would solve this right after I post it.

The App needs to be signed with a certificate following this process to keep continuity between builds.

If your Apple ID is already hooked up to XCode and you have a developer account, I went to the "Signing and Capabilities" section in the App Targets section and updated "Signing Certificate" to "Development".

  • Related