Notarization process not working

Hello all,

I have developed an application for MacOS. I am including notarization process as part of its distribution. I have followed all the steps and I have run:

xcrun altool --notarize-app --primary-bundle-id "${APP_BUNDLE_ID}" --username "${APPLE_DEV_ID}" --password "${DEV_APP_SPECIFIC_PASSWORD}" --file "${DMG_PATH}"


Then I check notarization progress using:

xcrun altool --notarization-info "${notarize_uuid}"  -u "${APPLE_DEV_ID}" -p "${DEV_APP_SPECIFIC_PASSWORD}


Output of it is:

RequestUUID: =<Request>
          Date: 2019-05-26 09:40:34 +0000
        Status: success
    LogFileURL: <Log file>
   Status Code: 0
Status Message: Package Approved =~ success ]]


Then I launch staple command:

xcrun stapler staple -v <dmg file>


It also ends with success:

The staple and validate action worked!


However when I extract the .app file and run:

spctl --assess --verbose ./macos/MyApp.app
./macos/MyApp.app/: accepted


According to the docs I have read it should say something like: “source=Notarized Developer ID”, right?

I am running this on MacOS Mojave 10.14.5

What am I missing.

Could someone help me?


Thanks in advance

Replies

Found solution to this:

In case someone faces the same problem I will post it:

First of all you must staple .app file not the dmg. This means you must extract the binary and staple it

Also in order to check if application has been notarized, in

`System Preferences - Security and Privacy`

Option

Allow apps downloaded from:
must have
Apple Store and identifier developers
option checked

Hope this helps