Version: 2023.2
Language : English
Notarize with Xcode and command-line tools
Deliver applications to the Mac App Store

Notarize with altool

Use the following information to notarize your application with altool.

Note: Apple will deprecate the use of altool for notarization in November 2023. It’s recommended to update to notarytool for notarization before this date. For more information, refer to Migrating to the latest notarization tool.

Create a provider short name

A provider short name is a single-word label that identifies an individual or a company. Apple uses a provider short name to locate which organization to notarize for. To get your provider short name:

  1. Open Terminal.
  2. Run the following Xcode command where:
xcrun iTMSTransporter -m provider -u apple_id -p xxxx-xxxx-xxxx-xxxx

Upload the application

For Apple to notarize your application, you need to upload it to their notarization servers. To do this, use the following steps:

  1. Open Terminal and navigate to the directory the compressed application is in.
  2. Run the following command where:
xcrun altool 
    --notarize-app 
    --username apple_id 
    --password xxxx-xxxx-xxxx-xxxx 
    --asc-provider provider_short_name 
    --primary-bundle-id application_bundle_id 
    --file application_name.zip

If the upload is successful, Apple displays a response in Terminal that has a request ID. You can use this request ID to check the status of your request as the notarization process might take multiple hours depending on the traffic to the service.

When the notarization process is complete, Apple sends confirmation to the email address associated with your Apple ID. You can verify that the application notarized successfully using the following steps:

  1. Open Terminal and navigate to the directory the application is in.
  2. Run the following command where:
    • application_name.app is the name of your application:
spctl -a -v application_name.app

Check the status of your request

To check the status of your notarization request, use the following steps:

  1. Open Terminal and navigate to the directory the compressed application is in.
  2. Run the following command where:
    • request_id is the request ID that Apple returns when uploading your application for notarization.
    • apple_id is your Apple ID.
    • xxxx-xxxx-xxxx-xxxx is your application password.
    • provider_short_name is your provider short name.
xcrun altool 
    --notarization-info request_id 
    --username apple_id 
    --password xxxx-xxxx-xxxx-xxxx 
    --asc-provider provider_short_name

Staple the application

To let a device verify your application without an internet connection, you must staple the application. For more information, refer to Staple the application.

Additional resources

Notarize with Xcode and command-line tools
Deliver applications to the Mac App Store
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961