Notarization process for macos application not working

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

The output from the spctl command is two lines of text, the first line says path-accepted and the second line says source=Notarized Developer ID
Maybe you just didn't notice the second line of text ?
Sounds like you're notarized anyways.