copy app from dmg, the app can't open.

Hi.

I create a dmg for my app (notarized success, it's on Big Sur, Intel), this dmg can drag the app to the applications folder.

After copy the app can work on:

  • Big Sur (intel)
  • Big Sur (M1)

but it's can't work on High Sierra, this is the message

app is damaged and can't be opened.

use command to check notarized

spctl -a -vv 

to check my app, it's return accepted.

If directly open the app on dmg volume, it's work.

It's possible got some problem after copy?

The message you’re seeing suggests that code signing verification is failing on 10.13. I presume you’re copying the app to the Application folder using the Finder? If so, what does this report:

% codesign -v -vvv /Applications/YourAppName.app

Oh, and which specific 10.13 release are you testing on? 10.13 itself? Or a fully updated 10.13.6?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

So, just to clarify:

  1. You build the app on macOS 11.

  2. You package the app into a disk image on macOS 11.

  3. You test that on macOS 10.13, and it fails.

  4. You then take the same built app from step 1 and package it into a disk image on macOS 10.13.

  5. You test that on macOS 10.13 and it works.

Is that right?


You wrote:

hdiutil create -volname $title -srcfolder $workspace -ov -format UDRW $out

Using UDRW is weird. I’m surprised you’re able to pass notarisation in that case. I recommend that you omit the -format parameter, resulting in a default of UDZO.

Also, do you sign this disk image (you should!).

For info on how to do this, see Signing a Mac Product For Distribution.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I also sign the .dmg, and notarized this .dmg.

OK, then I’m out of easy answers here. I recommend that you open a DTS tech support incident so that I can allocate the time to look at your product in detail.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

copy app from dmg, the app can't open.
 
 
Q