Cannot notarize flat package

Hello,


I successfully codesigned my app and it was accepted by notarization service. Then I created a package using pkgbuild / an app called "packages" and codesigned it using Installer identity. The installer works fine.


I'm now trying to notarize the .pkg file but no success. It always returns invalid status with this error:


severity"error"
codenull
path"<package internal path>.pkg Contents/Payload/Contents/MacOS/<executable>"
message"The signature of the binary is invalid."
docUrlnull
architecture"x86_64"


(I replaced real paths above).

It's an Unity app, so I don't place random scripts in random places.
If I made a .dmg "installer" with these files, the .dmg is accepted by notarization service

However, when the application is installed, both codesign and spctl return OK status. I use XCode 11.3.1. on macOS 10.14.6.


Any suggestions how to fix this problem?

Then I created a package using

pkgbuild
/ an app called "packages"

If you’re using a third-party app to prepare your installer package, you should escalate this with that vendor.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I've tried with the built-in pkgbuild terminal command, the results were same.

So, to be clear, you have an installer package that you’ve built entirely using Apple tools (including any subpackages, but not including the actual code itself, which you built with Unity) and that still triggers the problem?

If so, you should open a DTS tech support incident and we can take a look in that context.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Cannot notarize flat package
 
 
Q