Code signed and notarised GRASS GIS 8.4 Mac ARM binary for testing

Hi all,

Thanks to the assistance of Michael Smith and Regina Obe of OSGeo Foundation, I have acquired the necessary info for creating code signed and notarised binaries for Mac.

After initial testing by Michael Barton, I have fine tuned and managed to create a valid (tested in a fresh OS in virtual machine) binary:

https://drive.proton.me/urls/W1M4KAZ1WC#G2xY1ZdJCYIU

Please give it a try and share your experience!

Cheers,
Nicklas

3 Likes

Works for me on an 2021 Macbook Pro with an Apple M1 chip and Mac OS 15.1.1.
Thanks, Brendan

On Wed, Dec 25, 2024 at 2:10 PM Nicklas Larsson via OSGeo Discourse <noreply@discourse.osgeo.org> wrote:

nila
December 25

Hi all,

Thanks to the assistance of Michael Smith and Regina Obe of OSGeo Foundation, I have acquired the necessary info for creating code signed and notarised binaries for Mac.

After initial testing by Michael Barton, I have fine tuned and managed to create a valid (tested in a fresh OS in virtual machine) binary:

https://drive.proton.me/urls/W1M4KAZ1WC#G2xY1ZdJCYIU

Please give it a try and share your experience!

Cheers,
Nicklas


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Unfortunately, it still does not work for me without running the terminal command

xattr -c /Applications/GRASS-8.4.app

I initially tested by moving my existing copy of 8.4 to the trash. I got the Apple canā€™t verity this app message. Then i tried overwriting my working version of 8.4 with the new one. I got the same message. But worse, after running the xattr command, I then got the original message that ā€˜this app is damagedā€™. Running xattr does fix this. I will try to reinstall my own compiled (unsigned) version and see if I can get it running.

My unsigned 8.4 installs and runs on my own system without the xattr command. I assume it work because I compiled it.

If the new signed and notarized version works for everyone else, thatā€™s good news. But in that case it is baffling why it does not work for me if I did not compile it.

Michael, it is not possible to do xattr -c ā€¦ with a notarised application (it results in "xattr: [Errno 1] Operation not permitted: '/Applications/GRASS-8.4.appā€™ā€). You have probably mixed up the dmgā€™s, and not used the one I created.

On 26 Dec 2024, at 22:05, Michael Barton via OSGeo Discourse noreply@discourse.osgeo.org wrote:

cmbarton
December 26

Unfortunately, it still does not work for me without running the terminal command

xattr -c /Applications/GRASS-8.4.app

I initially tested by moving my existing copy of 8.4 to the trash. I got the Apple canā€™t verity this app message. Then i tried overwriting my working version of 8.4 with the new one. I got the same message. But worse, after running the xattr command, I then got the original message that ā€˜this app is damagedā€™. Running xattr does fix this. I will try to reinstall my own compiled (unsigned) version and see if I can get it running.


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Brandon,

Which Mac model and OS are you using?

Michael

Never mind. I see it

Thanks for this info. It could be some weird quirk in my system. My bigger worry is when my colleague tested it on a system similar to Brandonā€™s. He has not yet installed any GRASS version higher than 8.2. He downloaded it from the link you provided previously and got the same error as I did about not being able to verify it.

I have tested with a fresh installation of macOS 15.2 in a VM, following instructions in:

https://forums.developer.apple.com/forums/thread/130560

(Michael, just to avoid misunderstanding, the linked dmg above is not the same I shared previously privately).

Ok. Iā€™ll ask Sean to test again

Michael

Michael Barton

ā€¦Sent from my iPad

On Dec 27, 2024, at 8:59 AM, Nicklas Larsson via OSGeo Discourse noreply@discourse.osgeo.org wrote:

nila
December 27

(Michael, just to avoid misunderstanding, the linked dmg above is not the same I shared previously privately).


Visit Topic or reply to this email to respond.


In Reply To

cmbarton
December 27

Thanks for this info. It could be some weird quirk in my system. My bigger worry is when my colleague tested it on a system similar to Brandonā€™s. He has not yet installed any GRASS version higher than 8.2. He downloaded it from the link you provided previously and got the same error as I did about nā€¦


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Michael and others, Iā€™ve downloaded Nicklasā€™ dmg, Iā€™ve installed Grass 8.4 and I started it just with an advice about being an application downloaded from Internet.
Agustin

Thanks Agustin,

Thatā€™s good to know.


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Dec 27, 2024, at 8:22 AM, Nicklas Larsson via OSGeo Discourse noreply@discourse.osgeo.org wrote:

nila
December 27

I have tested with a fresh installation of macOS 15.2 in a VM, following instructions in:

https://forums.developer.apple.com/forums/thread/130560


Visit Topic or reply to this email to respond.


In Reply To

cmbarton
December 27

Thanks for this info. It could be some weird quirk in my system. My bigger worry is when my colleague tested it on a system similar to Brandonā€™s. He has not yet installed any GRASS version higher than 8.2. He downloaded it from the link you provided previously and got the same error as I did about nā€¦


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Sean had no problems either. So thatā€™s 3 with no issue. It seems like you have solved the longstanding signing problem. Hopefully, when I compile it locally it will work for me too.

Michael

Michael Barton

ā€¦Sent from my iPad

On Dec 27, 2024, at 9:08 AM, Michael Barton c.michael.barton@gmail.com wrote:

Ok. Iā€™ll ask Sean to test again

Michael

Michael Barton

ā€¦Sent from my iPad

On Dec 27, 2024, at 8:59 AM, Nicklas Larsson via OSGeo Discourse noreply@discourse.osgeo.org wrote:

nila
December 27

(Michael, just to avoid misunderstanding, the linked dmg above is not the same I shared previously privately).


Visit Topic or reply to this email to respond.


In Reply To

cmbarton
December 27

Thanks for this info. It could be some weird quirk in my system. My bigger worry is when my colleague tested it on a system similar to Brandonā€™s. He has not yet installed any GRASS version higher than 8.2. He downloaded it from the link you provided previously and got the same error as I did about nā€¦


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Tested here on 2020 MacBook Pro, M1 and MacOS 14.6.1, it works. I still get ā€œā€œGRASS-8.4ā€ is an app downloaded from the Internet. Are you sure you want to open it? Chrome downloaded this file today at 4:38 PM. Apple checked it for malicious software and none was detected.ā€
Is it expected to get this? (I donā€™t use Mac regularly)

Thanks,
Anna

That alert is expected as the app isnā€™t downloaded from App Store.

See here:

Alert that the app was downloaded from the Internet

The first time you open a new app from an identified developer that you downloaded outside the App Store, your Mac asks if youā€™re sure you want to open it.

So this is fine.

Thank you all for testing!!

1 Like