# Code-signing/notarising exported Processing App

**URL:** <https://discourse.processing.org/t/code-signing-notarising-exported-processing-app/40040>\
**Category:** Processing\
**Created:** [December 6, 2022, 7:40am UTC](https://discourse.processing.org/t/code-signing-notarising-exported-processing-app/40040 "2022-12-06T07:40:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexs](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@alexs](https://discourse.processing.org/u/alexs)\
**Post date:** [December 6, 2022, 7:40am UTC](https://discourse.processing.org/t/code-signing-notarising-exported-processing-app/40040/1 "2022-12-06T07:40:24Z")

</div>

Hello, is there a definitive method to codesign/notarise exported applications for OSX?

I’d love to be able to share my little app without prompting the user to hack their way past the gate keeper…

It was discussed a couple of times a few years back, anyone managed and can share the steps please?  
Thanks so much!

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [December 12, 2022, 2:04pm UTC](https://discourse.processing.org/t/code-signing-notarising-exported-processing-app/40040/2 "2022-12-12T14:04:57Z")

</div>

File/ExportApplication… appears to be self-explanatory as well as the bottom link on the ‘Export Options’ window. I easily created a demo Mac app and put it up on DropBox: [https://www.dropbox.com/s/iyquxgthsxwf075/test\_4.app.zip?dl=0](https://www.dropbox.com/s/iyquxgthsxwf075/test_4.app.zip?dl=0)

I would be interested to see if you are able to run it. The app bundle has a \_CodeSignature folder containing a CodeResources file so it should be signed.

---

<div class="post-metadata">

**Author:** ![alexs](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@alexs](https://discourse.processing.org/u/alexs)\
**Post date:** [December 12, 2022, 5:19pm UTC](https://discourse.processing.org/t/code-signing-notarising-exported-processing-app/40040/3 "2022-12-12T17:19:55Z")

</div>

Hi Svan  
Thanks for reaching out,  
I tested your app and I have the error “test\_4” cannot be opened because it is from an unidentified developer (screenshot below). I can bypass that if I right click the app and chose open. Not a big deal but it gets more complicated if pictures are embeded in the app, they won’t appear if the app has been downloaded ( you can wetransfer it to yourself to find out).  
In that case the workaround is to unquarantine the app through terminal “xattr -d com.apple.quarantine” which I think is too complicated for the end user…

I wonder if the exported app could unquarantine itself at startup by executing terminal? Is such a thing possible?

Thanks  
Alex

![Screenshot 2022-12-12 at 18.11.34](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/c/1/c10c663386a4eb0971db3fbdbb900727a5d4c62f.png)

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [December 12, 2022, 6:00pm UTC](https://discourse.processing.org/t/code-signing-notarising-exported-processing-app/40040/4 "2022-12-12T18:00:07Z")

</div>

Certainly possible to run cmdLine code using **exec()**. Might be able to call exec() at startup of main app (I’ve never tried it). What I don’t know is if it’s possible to piggyback a second processing app onto the main app and call it at startup. Alternative would be to create two separate apps and call the **xattr** code from the first app (assuming it knows the location of the second app). Embedding **exec()** in startup of main app would be the simplest if it’s doable.

N.B. If I place an image in the test\_4 app I am no longer able to export it using Processing 4.1.1. Are you able to export a Mac app if it contains an image?
