A Digital Life

My Notebook

View My GitHub Profile

  • About
  • 13 January 2023

    Codesiging Java apps for the Apple App Store

    by kerner1000

    Tell Apple about your App

    1. Register as a developer at developer.apple.com.

    2. Go to developer.apple.com/account/resources/certificates/list and register a new identifier for the app.

      localImage

    3. Go to appstoreconnect.apple.com/apps and register a new App with the created identifier.

      localImage

    4. Go to appstoreconnect.apple.com/access/api and create a developer API key.

      localImage

      You will need the “Issuer ID” and the “KEY ID” later for the notarization.

    Codesign your App

    Notarize your App

    Troubleshooting codesigning problems

    Finding the problem

    codesign --verify DrKodi.app
    

    To verify that the app is signed, the following command provides information about the signing status of the app:

    codesign -d --verbose=4 DrKodi.app
    

    To check whether an application can be launched when Gatekeeper is enabled, use the spctl command:

    spctl --assess --verbose=4 DrKodi.app
    DrKodi.app: rejected
    source=no usable signature
    

    If you leave off the –verbose tag, and it does not print any output, indicates ‘success’.

    Sources:

    tags: Java - JavaFX - codesign - Mac