Persist accessibility permissions between builds in xcode 13
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".
How to prompt for accessibility features in a macOS app (from the AppDelegate)?
I realized this is an Xcode bug instead. This is caused if the SwiftUI preview provider is run concurrently with the actual build, this causes some confusion with the accessibility permissions with macOS.
The application works as expected after the derived data directory is cleaned. You can do that with
rm -rf ~/Library/Developer/Xcode/DerivedData
Related Topics
Cannot Preview This File, App May Have Crashed -- Occurs When Inputting Specific Line of Code
Render Images on iOS 14 Widgets
Swift: Filter a Dictionary with Array as Value
How to Use a Specific Gmt for a Function Which Will Be Recognised by Other Time Zones
Cannot Use Unarchivefromfile to Set Gamescene in Spritekit
How to Convert This Date Format in Swift
Realm Data Doesn't Show Up on a Physical Device
Swift 2.2 Decrementing Specific for Loop in Swift 3
Binary Operator '==' Cannot Be Applied to Operands of Type 'Uilabel' and 'String'
Swift Package Manager Dynamic Library
Rotation Gesture Produces Undesired Rotation
Tabview, Tabitem: Running Code on Selection or Adding an Ontapgesture
Realitykit - How to Add Motion to a Loaded Modelentity from Usdz File
How to Change the Order of Functions Triggered
Ios8: Auto-Layout and Gradient
Ibeacon: Get Advertisement Package Faster