Test a Developer ID-signed app

After exporting your notarized app or exporting your app using a Developer ID certificate, you can test whether your app was signed correctly and simulate the launch behavior when apps from identified developers are enabled or disabled.

Verify that your app is Developer ID-signed and notarized

Verify whether your Developer ID app is signed correctly and notarized.

  1. Enable Developer ID-signed apps using Security & Privacy preferences (go to Protect your Mac from malware).

  2. In Terminal, enter the following command by replacing TrackMix.app with the path to your app.

    $ spctl -a -v TrackMix.app
  3. Press Return.

    If the app is correctly signed and notarized, the output of this command is:

    ./TrackMix.app: acceptedsource=Notarized Developer ID

    If the app was Developer ID-signed but not notarized, the output is:

    ./TrackMix.app: acceptedsource=Developer ID

Test the launch behavior

To thoroughly test your Developer ID-signed app, simulate launching the app on a Mac not used for development. If you enable "App Store and identified developers” in the Security & Privacy preferences, a quarantined copy of your app launches only if it’s Developer ID signed.

For details on quarantine files, read the File Quarantine article.

  1. Enable Developer ID-signed apps using Security & Privacy preferences (go to Protect your Mac from malware).

  2. Quarantine a copy of your app. You can do this in either of the following ways:

    • Email the app to yourself and use the copy that Mail downloads.

    • Host the app on your own local or remote server and use the copy that Safari downloads.

  3. In the Finder, locate the quarantined copy of the app and double-click it.

    If the app is signed with a Developer ID certificate, an alert appears asking whether you’re sure you want to open the app.

    If the app is not signed with a Developer ID certificate, an alert appears that blocks your app from launching.

    Note: Gatekeeper protects a Mac by preventing first-time opening of apps from unidentified developers. Apps previously opened by a user are no longer quarantined, and Gatekeeper doesn’t prevent them from launching.

See alsoDistribute outside the Mac App Store (macOS)Sign a Mac Installer Package with a Developer ID certificateEnable and disable Developer ID apps and Gatekeeper