Yesterday I stumbled on some odd things with macOS 10.14
I received some mails from customers, who are running macOS 10.14 and said my app asks for access permissions to the Contacts.
The odd bit is that my app doesn’t call any code to access the contacts.
I first thought it was the MBS plugins triggering this. But I am not fully convinced this is the case.
Maybe the Xojo framework triggers this?
Looking into this in detail, it seems Mojava indeed checks if apps access certain things like mails, contacts, backups, file systems, …
Still, it is odd it triggers this even when my app does not call any of this (in this case Contacts) so maybe it does this because of the plugins or Xojo framework.
Debugging is extremely difficult because you only see this popup ones. You cannot remove the permission in System Preferences/Privacy options to see the warning again.
It happens when your software uses the feature (e.g. access to the camera, the microphone…).
In some apps, there is a crash reporter that launches at startup and that often wants access to your contacts so it can access your email address for crash reporting purposes.
I would recommend that you add the appropriate Info.plist entries (e.g. NSCameraUsageDescription and NSMicrophoneUsageDescription) if your app uses these features of macOS, as they are completely backwards-compatible.
As for debugging / resetting the permissions, here we’re testing with VMs so we simply snapshot them. I have not tried tccutil.