security dialogs appear during each build in macOS Catalina lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- inferno · 2020-05-29 11:36 Hi all, I'm working on application that access user system preferences and files/directories stored on system disk and other storage attached to the system. On macOS Catalina after running each build system is asking to allow access to System Events and files in different locations: Quote“application” wants access to control “System Events“. Allowing control will provide access to documents and data in “System Events“, and to perform actions within that app.Quote“application” would like to access files on a network volume.Quote“application” would like to access files in your Desktop folder.Quote“application” would like to access files in your Documents folder.Quote“application” would like to access files in your Downloads folder. Each new build is recognized by the system as different application, so it again is asking for permissions. What is interested this hasn't happen in macOS Mojave - it was enough to allow this once and each new compilantion has run without security dialogs. How to bypass this security control during development process in macOS Catalina? Best regards, Inferno ---------------------------------------------------------------------- trev · 2020-05-29 12:19 From Eskimo (Apple Forum Dev): QuoteIs your app code signed?  Most problems like this are caused by the app not being code signed, so the system can’t be sure that the new build of your app is the same code as the previous build that was OK’d be the user. That probably explains it. I noticed even Mojave is logging a check for signing on every rebuilt application's launch but of course, unlike Catalina, it's not enforcing access permission requests. It cannot be bypassed, it's a feature ---------------------------------------------------------------------- inferno · 2020-05-29 14:11 Apple last time makes tons of "improvements" especailly related to the security. But they forget to check how it affect the users... So if I sign the code and allow once for access to System Events and files locations, system will not ask for permissions during all next compilations? Best regards, Inferno ---------------------------------------------------------------------- trev · 2020-05-30 01:12 Quote from: inferno on May 29, 2020, 04:11:27 pmApple last time makes tons of "improvements" especailly related to the security. But they forget to check how it affect the users... The effect is fully intended for the "users" and only happens the first time the application is run. It's a little different for the developers QuoteSo if I sign the code and allow once for access to System Events and files locations, system will not ask for permissions during all next compilations? I can't guarantee it, but it would seem to be implied by Eskimo if you incorporate code signing into your rebuilding workflow. The alternative is to use Mojave for development which is what I do.