Notarization of two apps - wrong result

When I notarize two apps the same time I get wrong DMG image for second app.

I use a command for App1 and then for App2:

Code Block
xcrun altool --notarize-app --primary-bundle-id app1id -u my@email.com -p xxxxxxx --file App1.dmg
xcrun altool --notarize-app --primary-bundle-id app2id -u my@email.com -p xxxxxxx --file App2.dmg


Then I get an email with a successful notarization, I call

Code Block
xcrun stapler staple App1.dmg
xcrun stapler staple App2.dmg


DMG with App1 is correct. Signed and notarized.

But after stapling DMG with App2 is wrong - it includes App2 and App1 (!) and DMG has increased file size!
Of course, I've sent for a notarization only a single App2 in a DMG.

What I'm doing wrong? This problem doesn't appear if I send App2 for notarization AFTER successful notarization of App1 and stapling DMG image.

macOS 11.1 Big Sur, Apple DTK.
Answered by DTS Engineer in 660160022

But after stapling DMG with App2 is wrong - it includes App2 and App1
(!) and DMG has increased file size!

This isn’t related to notarisation because notarisation is a one-way process. You upload your product to Apple where it’s inspected by the notary serice which then issues a ticket for it. The only thing you can download from Apple is that ticket. There’s no mechanism for downloading the disk image that you uploaded.

I suspect you have a problem elsewhere in your production pipeline. I recommend that you add logging to that pipeline to see where things are going wrong.

Share and Enjoy

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

But after stapling DMG with App2 is wrong - it includes App2 and App1
(!) and DMG has increased file size!

This isn’t related to notarisation because notarisation is a one-way process. You upload your product to Apple where it’s inspected by the notary serice which then issues a ticket for it. The only thing you can download from Apple is that ticket. There’s no mechanism for downloading the disk image that you uploaded.

I suspect you have a problem elsewhere in your production pipeline. I recommend that you add logging to that pipeline to see where things are going wrong.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Ops, sorry! My fault. The problem is solved.
Notarization of two apps - wrong result
 
 
Q