Thanks Fredrik, more interesting info to go through (including your initial post with the TCC.framework details).
Admittedly, I’m not sure yet how to apply this to my apps - if possible at all. Maybe I’ll take another look at Adam Chester’s PlugIns folder solution later again to understand better how it works.
If not this, then hopefully some other hack or loophole can be found eventually.
I believe that the situation with Apple Events sandboxing is totally unacceptable. There should be a simple option in Xcode to bypass the dialogs with automatic approval during the development cycle. I did submit a request via Apple’s Feedback Assistant - but am sure not holding my breath that it ever happens.
Yeah I sure believe that Python is quite powerful. I don’t have any experience with it though. So I wouldn’t even know where to start - let alone if it can be done at all.
Thanks for your efforts though! I’ll try digging around and post updates if I find anything.
No doubt. But what is being asked for here is, essentially, a way to bypass Apple’s security. If that can be done, whatever the language used, chances are the exploit will be quickly blocked.
All I know is that after setting everything up - it does what I need. There are no Apple Events sandboxing dialogs anymore after “build and run” Xcode cycles - every new build launches uninterrupted like in good old times!
Well, it took much longer than writing this - namely, several hours. Plus I thought my brain will melt before I could piece everything together.
But what the hell - it seems to work now.
Thanks Fredrik’s! In the end your advice was extremely useful - as well as Shane’s contribution.
If anyone is interested in details and has any questions - just let me know.
I received a reply to my feedback from Apple (shockingly fast - after a few days).
Their point was that I just need to sign my apps in Xcode (and specifically not with adhoc signing, whatever it is).
I indeed don’t sign my apps in Xcode at all. I sign them with a custom script once an update is ready for release.
So I activated “Automatically manage signing” in Xcode - and lo and behold the Apple Event dialogs on new build launches went away.
Now, the signature produced by Xcode most likely doesn’t satisfy the notarization and other distribution needs (which is why I didn’t use it in the first place). The Xcode signing will really only be used to get rid of the aforementioned authorization dialogs.
For the notarization I’ll keep using my custom scripts before the release.