Im trying to use xcrun altool to get my app notarised, what is --asc-provider parameter?

I'm trying to notarise my app from apple using xcrun altool, the documentation shows the following :

xcrun altool --notarize-app --primary-bundle-id "com.example.ote.zip" --username "AC_USERNAME" --password "@keychain:AC_PASSWORD" --asc-provider <ProviderShortname> --file OvernightTextEditor_11.6.8.zip

but I couldn't find the parameter to provide to the --asc-provider can any one let me know what it is and where to search for that parameter. All other parameters I have found and fine. Help me out I'm new to mac.


Solution 1:

altool manual page

The manual for altool can be viewed by running the command man altool. The manual states:

--asc-provider provider_shortname

Required with --notarize-app and --notarization-history when a user account is associated with multiple providers.

Without your knowing, it is unlikely that your account is associated with multiple providers.

asc-provider

If you believe you need a provider, see Apple's Customizing the Notarization Workflow:

You can omit the asc-provider option for the notarization call if your credentials are associated with only a single team. Otherwise, use the option to indicate the provider short name for the appropriate team. Starting in Xcode 11, you can use altool to get a table of providers, provider short names, and team IDs associated with a given username and password using the list-providers option:

xcrun altool --list-providers -u "AC_USERNAME" -p "@keychain:AC_PASSWORD"

Solution 2:

The provider is nothing but the membership account that you use. This is apple developer account.

In the developer account there can be different membership account inside that and that account is the provider for the certificates or profiles or identifiers you create

Provider short name can be known from the membership account page for reference see the image below

enter image description here