How to notorize MacOS software?

Mac OSX specific forum
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

How to notorize MacOS software?

Post by DoubleDutch »

I noticed this after downloading my signing certificate for a MacOS program:
Beginning in macOS 10.14.5, software signed with a new Developer ID certificate and all new or updated kernel extensions must be notarized to run. Beginning in macOS 10.15, all software built after June 1, 2019, and distributed with Developer ID must be notarized. However, you aren’t required to notarize software that you distribute through the Mac App Store because the App Store submission process already includes equivalent security checks.
It looks like to do this you have to have a 'Hardened runtime' ?
Enable the Hardened Runtime capability for your app and command line targets, as described in Enable hardened runtime.
How do we do this for a MacOS program written in PureBasic?

See these links:
https://developer.apple.com/documentati ... stribution
https://developer.apple.com/documentati ... ed_runtime
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
wombats
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Dec 29, 2011 5:03 pm

Re: How to notorize MacOS software?

Post by wombats »

Did you find out anything about this? I wonder if it's something that could be added to PB's Compiler Options.
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: How to notorize MacOS software?

Post by DoubleDutch »

Couldn't find anything. :(
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
mk-soft
Always Here
Always Here
Posts: 5409
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: How to notorize MacOS software?

Post by mk-soft »

The applications we develop do not have a developer ID assigned by Apple.
Therefore, as with other programs downloaded from the Internet, this must be explicitly approved by the user.

Unless you have a developer ID from Apple and do not want to distribute it in the App-Store.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: How to notorize MacOS software?

Post by DoubleDutch »

I thought that in the next OS this a requirement - that's what it appears from those instructions.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
mk-soft
Always Here
Always Here
Posts: 5409
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: How to notorize MacOS software?

Post by mk-soft »

After a new installation of Windows 10 (1909) my colleague wanted to install an old software. This one absolutely didn't want to work, because the UAC didn't allow it.
It was only possible to start the setup program via console with administrator rights.

This is Windows worse at the moment. Let's see what macOS will do in the future.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: How to notorize MacOS software?

Post by DoubleDutch »

On Windows there is a link on that dialog - it's quite hidden, but it allows you to 'install anyway' (no need for admin console).
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
wombats
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Dec 29, 2011 5:03 pm

Re: How to notorize MacOS software?

Post by wombats »

mk-soft wrote:The applications we develop do not have a developer ID assigned by Apple.
Therefore, as with other programs downloaded from the Internet, this must be explicitly approved by the user.

Unless you have a developer ID from Apple and do not want to distribute it in the App-Store.
Is it possible to create PB apps with a developer ID? It's something I haven't looked into yet.

I use the SoLoud audio library and also some dylibs I've made myself. macOS brings up the security dialog for them...having several of those dialogs pop up doesn't look great.
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: How to notorize MacOS software?

Post by DoubleDutch »

I downloaded a dev distribution cert from Apple and used:
codesign -s "My code sign company name" "My app name.app"
That signed it and made it easier for people to install. I don't know if this will work in future versions of MacOS though as it's not 'notorized' - that would mean including extra stuff in the code itself.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply