Mojave and "Not authorized to send Apple events to Finder" issues

HiI have built and maintained an app using Xcode, with the help of many from here that I use to help automate my workflow, in a prepress environment, it's a work in progress and has been for about 10 years, i'm a novice coder, and have managed to keep the app current to OSX 10.12.6, the app interacts wit Indesign CC, Finder, System events etc, and works pretty well for my purpose.

I have recently installed Mojave on a test mac to try to build my app to suit, and this is where the trouble starts, lots of new securitymeasures have been put in place, of which I have tried to set up in Security & Privacy prefs, but alas I keep getting anerror "Not authorized to send Apple events to Finder" and i'm guessing that as I go through more in my code ill get similar issues, I have found that to by pass these errors I would need to code sign my app, of which I have no idea or the knowledge to do, or run it as "run only", don't even no if thats possible.

The question is, how can I code my app, or change some settings in Xcode to allow me to run my app in Mojaveas I feel if I cannot do anything, that my app will stop, and that will be the end.

Re: Mojave and "Not authorized to send Apple events to Finder" issues

You are going to see authorization dialogs as you test your app, and users will see them the first time it tries to control any app -- that's how things work in 10.14. But it's far from the end of the world. Just make sure you add the correct privacy entry to your app's Info settings.

If you're just using it internally you can probably get away with ad-hoc code signing, but really, you should consider paying for an Apple developer account and doing it properly.

Re: Mojave and "Not authorized to send Apple events to Finder" issues

thanks for your input Shane, I tried the ad hoc code sign, failed , so I signed up to Apple developer, to try to code sign that way, failed, im now getting "codesign failed with exit code 1" not sure how to deal with that.

my settings under signing are set to automaticlly manage, my team name, and my signing certificate, im really in quite deep here and uncertain what else to do to make my app run, as the builds keep failing, Its only for in house use, ill keep trying different things,

Re: Mojave and "Not authorized to send Apple events to Finder" issues

thanks Shane, that made some difference, but found this out

this morning I went out searching and found that the pro I'm getting now, which is "resource fork, Finder information, or similar detritus not allowed"leads to "Code signing no longer allows any file in an app bundle to have an extended attribute containing a resource fork or Finder info."

Running this in terminal xattr -lr <path_to_app_bundle> returned a heap of information, the most relevant being