I develop apps using C sharp in Visual Studio for Mac.
The app was originally granted accessibility permissions, but after it was notarized by Apple, it failed to determine if it was granted permissions.
This is how it is determined in the code.
This may or may not occur on different devices.
When I compared the console logs of the devices that this occurred and those that didn't, I noticed the following differences.
I recently changed the bundle ID, but the devices seems to refer to the old bundle ID.
By the way, this problem no longer occurs when I reboot the device.
However, I don't want to force users to go through this procedure, so I'm looking for someone who has a solution to this problem.
The app was originally granted accessibility permissions, but after it was notarized by Apple, it failed to determine if it was granted permissions.
This is how it is determined in the code.
Code Block var key = new NSObject[] { FromObject("AXTrustedCheckOptionPrompt") }; var obj = new NSObject[] { FromObject((NSNumber)0) }; var options = NSDictionary.FromObjectsAndKeys(obj, key); if (!AXIsProcessTrustedWithOptions(options.Handle)) { //some codes }
This may or may not occur on different devices.
When I compared the console logs of the devices that this occurred and those that didn't, I noticed the following differences.
Code Block tccd handle_TCCAccessCopyInformation(): failed to find an Application URL for bundle ID: old.bundle.id.
I recently changed the bundle ID, but the devices seems to refer to the old bundle ID.
By the way, this problem no longer occurs when I reboot the device.
However, I don't want to force users to go through this procedure, so I'm looking for someone who has a solution to this problem.