Page 2 of 2

Re: Strange behaivour when unpacking my app from a downloaded zip file

Posted: Sat Jan 20, 2024 4:36 pm
by Piero
mk-soft wrote: Sat Jan 20, 2024 4:24 pm I don't have a Mac M1/M2
Have you tried the code ... Without immediately messing with the parameters.
The problem is with unsigned ARM apps downloaded from web (even your own); there are ways to make them work without notarization; notarizing is painful and expensive

Re: Strange behaivour when unpacking my app from a downloaded zip file

Posted: Sat Jan 20, 2024 5:09 pm
by Piero
What a stupid mad Italian I am, mk: I was about to send you a link to download a DMG with an unsigned ARM app...
...but... you cannot run it!

To myself: Gesauger!

Re: Strange behaivour when unpacking my app from a downloaded zip file

Posted: Sat Jan 20, 2024 5:19 pm
by mk-soft
For me it was not about the signature of a macOS APP, but the problem with the ZIP and the attributes.
A DMG is better for passing on (unsigned) APPs.
You don't have to sign up for a paid account with Apple Development to publish APPs in the Apple Store. For small apps you can also distribute them on your own web server. The user only has to allow them to start apps from other sources.

Re: Strange behaivour when unpacking my app from a downloaded zip file

Posted: Sat Jan 20, 2024 5:39 pm
by Piero
mk-soft wrote: Sat Jan 20, 2024 5:19 pm For me it was not about the signature of a macOS APP, but the problem with the ZIP and the attributes.
A DMG is better for passing on (unsigned) APPs.
You don't have to sign up for a paid account with Apple Development to publish APPs in the Apple Store. For small apps you can also distribute them on your own web server. The user only has to allow them to start apps from other sources.
Unfortunately, from what I saw you are very wrong... intel mac stuff doesn't have big problems; you just set sys prefs to "NOT only from appstore" and open them with ctrl-click/open... ARM stuff is "much more problematic" if not signed...
...we will soon need to notarize our PB code with our implanted microchip

Re: Strange behaivour when unpacking my app from a downloaded zip file

Posted: Sun Jan 21, 2024 9:38 pm
by Lebostein
Thanks @all for information. What I have understood: The difference between the original App and the downloaded App are the extended attributes. The original App has no extended attributes. After unzipping a downloaded and unknown app, macOS adds two extended attributes to the app:

Code: Select all

xattr my.app
>> com.apple.provenance
>> com.apple.quarantine
"provenance" means "unknown source" and
"quarantine" means "app was not checked by Apple for malware"

These attributes prevent execution. They must be removed manually. In my tests it was completely irrelevant whether zip or dmg.

X64-Apps can be opened without command line (right click menu and press open with option⌄ button pressed). But Arm64-Apps are cannot be executed "by mouse". I couldn't do it without the command line (xattr -cr).

Re: Strange behaivour when unpacking my app from a downloaded zip file

Posted: Mon Jan 22, 2024 7:16 am
by Piero
Lebostein wrote: Sun Jan 21, 2024 9:38 pm I couldn't do it without the command line (xattr -cr).
Did you try dropping the app on Terminal DOCK ICON ?
It asks me if I want to open an app downloaded from the net, I click OK, quit Terminal, and then I can run it!
I doubt that it always works... but out of curiosity, please let me know if it works for you

Re: Strange behaivour when unpacking my app from a downloaded zip file

Posted: Sun Jan 28, 2024 8:19 pm
by Bmld756
Hello,

It is normal if your are not an Apple developper, so your App is not sign. On intel it is possible to force but not on M series. So I distribute a software for intel and M produce write with pure basic. To solve this pb when you download yours software, apply the next command line

xattr -d com.apple.quarantine /Applications/nameofthesoft.app

On my site, I explain it and you can test : download the software and apply this command line

http://bmaillard.free.fr/programmer/

Envoyer