Mac standalone download damaged

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

bd525
Posts: 80
Joined: Sun Aug 31, 2014 12:43 am

Mac standalone download damaged

Post by bd525 » Wed Mar 16, 2022 3:04 pm

When I attempt to open the downloaded unzipped Mac standalone version of my app I get "<app name> is damaged and can’t be opened." Baffling factors:

* The app runs fine before zipping and after unzipping without downloading.
* The Windows version of the same app unzips and runs fine after downloading.
* The Mac version of another very similar app also unzips and runs fine after downloading.

I've looked for differences I might have inadvertently set in Standalone Application Settings, but without result.

I appreciate any insight about the possible cause of this problem. Thanks!

stam
Posts: 2599
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Mac standalone download damaged

Post by stam » Thu Mar 17, 2022 2:31 am

It's likely a code-signing issue.
Have you code-signed and notarised your standalone app?

If not, have a look here: https://lessons.livecode.com/m/4071/l/1 ... c-appstore

Hope that helps,
Stam

bd525
Posts: 80
Joined: Sun Aug 31, 2014 12:43 am

Re: Mac standalone download damaged

Post by bd525 » Fri Mar 18, 2022 1:32 pm

Thanks, I'll look into that. Rookie here. I was aware of those processes but thought they were relevant only to iPhone apps.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mac standalone download damaged

Post by richmond62 » Fri Mar 18, 2022 2:21 pm

It's likely a code-signing issue.
I do not think I believe that.

I just ran off a Mac 64-bit standalone from LC 8.1.10 on my 32-bit 2006 iMac running MacOS 10.6.8
and carried it over to the other side of the room on a flash-drive and copied it onto the desktop
of my 2018 Mac Mini running MacOS 12.3 and the thing opened "just like that". . . no code signing,
no nothing.
-
TEMU.jpg
-
I wonder if your problem has got something to do with the ZIP compression?

Should you wish to try this, my standalone (zipped on MacOS 12.3) is available here:

https://www.dropbox.com/s/lngzju35ch4tpc7/TEMU.zip?dl=0

bd525
Posts: 80
Joined: Sun Aug 31, 2014 12:43 am

Re: Mac standalone download damaged

Post by bd525 » Fri Mar 18, 2022 2:31 pm

As I said in my original post, "The Mac version of another very similar app also unzips and runs fine after downloading." So code signing and notarizing don't appear to be causes of the problem.

Both apps were zipped in the same fashion, and I have re-zipped the problem app without a different result, but I suppose I could continue looking into that.

bd525
Posts: 80
Joined: Sun Aug 31, 2014 12:43 am

Re: Mac standalone download damaged

Post by bd525 » Fri Mar 18, 2022 2:32 pm

I have also downloaded from multiple sites (Google Drive, Dropbox, OneDrive) without success.

stam
Posts: 2599
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Mac standalone download damaged

Post by stam » Fri Mar 18, 2022 2:54 pm

richmond62 wrote:
Fri Mar 18, 2022 2:21 pm
I do not think I believe that.
Richmond, you are of course welcome to actually provide a better explanation. Please note that the crucial step here is the downloading. Copying from usb drive probably does not replicate the issue.

I mention this as this is what affected me, and what may be affecting @bd525...
In my case - to be specific - i created the standalone -> no problem.
Zipped -> no problem.
Uploaded the zip file and then re-downloaded -> problem.
Problem solved by code-signing.

Seems to me likely the same issue. You lose nothing by code-signing. Notarising on the other hand may cost you the annual apple dev fee (or maybe not, i'm not sure).

Hope that helps
Stam

stam
Posts: 2599
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Mac standalone download damaged

Post by stam » Fri Mar 18, 2022 2:59 pm

richmond62 wrote:
Fri Mar 18, 2022 2:21 pm
Should you wish to try this, my standalone (zipped on MacOS 12.3) is available here:

https://www.dropbox.com/s/lngzju35ch4tpc7/TEMU.zip?dl=0
Too bad...
Screenshot 2022-03-18 at 13.56.51.png
I love it when a good theory falls apart ;)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mac standalone download damaged

Post by richmond62 » Fri Mar 18, 2022 3:02 pm

Interesting . . .

1. Mind you, you might like to try a right-click and see what the drop-down menu says . . .

2. Can anyone explain why my walk across my study (as per previous post) caused no problems?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mac standalone download damaged

Post by richmond62 » Fri Mar 18, 2022 3:05 pm

Please note that the crucial step here is the downloading.
Oh, "Sugar" . . . downloaded my own thing:
-
SShot 2022-03-18 at 16.03.10.png
SShot 2022-03-18 at 16.03.10.png (48.29 KiB) Viewed 4824 times
-
Right-Click did the trick:
-
SShot 2022-03-18 at 16.04.37.png

bd525
Posts: 80
Joined: Sun Aug 31, 2014 12:43 am

Re: Mac standalone download damaged

Post by bd525 » Fri Mar 18, 2022 3:10 pm

My problem app works fine when transferred between devices by physical media (USB), in either zipped or unzipped form. The problem only occurs when a zipped version is downloaded online. And again, another app--also not code signed, and with identical Livecode standalone application settings--works fine after zipping and downloading.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mac standalone download damaged

Post by richmond62 » Fri Mar 18, 2022 4:41 pm

Have you tried Right-clicking the app?

bd525
Posts: 80
Joined: Sun Aug 31, 2014 12:43 am

Re: Mac standalone download damaged

Post by bd525 » Fri Mar 18, 2022 5:00 pm

Yes, same result: "“<app name>.app” is damaged and can’t be opened.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mac standalone download damaged

Post by richmond62 » Fri Mar 18, 2022 6:29 pm

You in a right pickle then.

As I find that MacOS 12 will let apps 'in' with a right click.

I suppose one of the question that need to be asked refers
to the 'extra' bits one can select in the standalone builder to be rolled up into one's standalone.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Mac standalone download damaged

Post by jacque » Fri Mar 18, 2022 8:42 pm

The "developer cannot be verified" is specifically a code-signing issue. Gatekeeper throws that error if the app has not been notarized. Was the one that does work created in a previous version of Mac OS? Older apps are grandfathered in.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Mac OS”