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" |
| code | null |
| path | "<package internal path>.pkg Contents/Payload/Contents/MacOS/<executable>" |
| message | "The signature of the binary is invalid." |
| docUrl | null |
| 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?