Skip to content

sync_code_signing

Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.

Supported Platforms: ios, mac

Easily sync your certificates and profiles across your team (via match)

Details

More information: https://docs.fastlane.tools/actions/match/

Parameters & Options

Total options available: 59

Key Type Env Variable Default Required Description
type String MATCH_TYPE development Yes Define the profile type, can be appstore, adhoc, development, enterprise, developer_id, mac_installer_distribution, developer_id_installer
additional_cert_types Array MATCH_ADDITIONAL_CERT_TYPES - No Create additional cert types needed for macOS installers (valid values: mac_installer_distribution, developer_id_installer)
readonly Fastlane::Boolean MATCH_READONLY false Yes Only fetch existing certificates and profiles, don’t generate new ones
generate_apple_certs Fastlane::Boolean MATCH_GENERATE_APPLE_CERTS true Yes Create a certificate type for Xcode 11 and later (Apple Development or Apple Distribution)
skip_provisioning_profiles Fastlane::Boolean MATCH_SKIP_PROVISIONING_PROFILES false Yes Skip syncing provisioning profiles
app_identifier Array MATCH_APP_IDENTIFIER - Yes The bundle identifier(s) of your app (comma-separated string or array of strings)
api_key_path String - - No Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)
api_key Hash - - No Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-hash-option)
username String MATCH_USERNAME - No Your Apple ID Username
team_id String FASTLANE_TEAM_ID - No The ID of your Developer Portal team if you’re in multiple teams
team_name String FASTLANE_TEAM_NAME - No The name of your Developer Portal team if you’re in multiple teams
storage_mode String MATCH_STORAGE_MODE git Yes Define where you want to store your certificates
git_url String MATCH_GIT_URL - Yes URL to the git repo containing all the certificates
git_branch String MATCH_GIT_BRANCH master Yes Specific git branch to use
git_full_name String MATCH_GIT_FULL_NAME - No git user full name to commit
git_user_email String MATCH_GIT_USER_EMAIL - No git user email to commit
shallow_clone Fastlane::Boolean MATCH_SHALLOW_CLONE false Yes Make a shallow clone of the repository (truncate the history to 1 revision)
clone_branch_directly Fastlane::Boolean MATCH_CLONE_BRANCH_DIRECTLY false Yes Clone just the branch specified, instead of the whole repo. This requires that the branch already exists. Otherwise the command will fail
git_basic_authorization String MATCH_GIT_BASIC_AUTHORIZATION - No Use a basic authorization header to access the git repo (e.g.: access via HTTPS, GitHub Actions, etc), usually a string in Base64. Needs git 2.31 or later
git_bearer_authorization String MATCH_GIT_BEARER_AUTHORIZATION - No Use a bearer authorization header to access the git repo (e.g.: access to an Azure DevOps repository), usually a string in Base64. Needs git 2.31 or later
git_private_key String MATCH_GIT_PRIVATE_KEY - No Use a private key to access the git repo (e.g.: access to GitHub repository via Deploy keys), usually a id_rsa named file or the contents hereof
google_cloud_bucket_name String MATCH_GOOGLE_CLOUD_BUCKET_NAME - No Name of the Google Cloud Storage bucket to use
google_cloud_keys_file String MATCH_GOOGLE_CLOUD_KEYS_FILE - No Path to the gc_keys.json file
google_cloud_project_id String MATCH_GOOGLE_CLOUD_PROJECT_ID - No ID of the Google Cloud project to use for authentication
skip_google_cloud_account_confirmation Fastlane::Boolean MATCH_SKIP_GOOGLE_CLOUD_ACCOUNT_CONFIRMATION false Yes Skips confirming to use the system google account
s3_region String MATCH_S3_REGION - No Name of the S3 region
s3_access_key String MATCH_S3_ACCESS_KEY - No S3 access key
s3_secret_access_key String MATCH_S3_SECRET_ACCESS_KEY - No S3 secret access key
s3_session_token String MATCH_S3_SESSION_TOKEN - No S3 session token
s3_bucket String MATCH_S3_BUCKET - No Name of the S3 bucket
s3_object_prefix String MATCH_S3_OBJECT_PREFIX - No Prefix to be used on all objects uploaded to S3
s3_skip_encryption Fastlane::Boolean MATCH_S3_SKIP_ENCRYPTION false Yes Skip encryption of all objects uploaded to S3. WARNING: only enable this on S3 buckets with sufficiently restricted permissions and server-side encryption enabled. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingEncryption.html
gitlab_project String MATCH_GITLAB_PROJECT - No GitLab Project Path (i.e. ‘gitlab-org/gitlab’)
gitlab_host String MATCH_GITLAB_HOST https://gitlab.com No GitLab Host (i.e. ‘https://gitlab.com’)
job_token String CI_JOB_TOKEN - No GitLab CI_JOB_TOKEN
private_token String PRIVATE_TOKEN - No GitLab Access Token
keychain_name String MATCH_KEYCHAIN_NAME login.keychain Yes Keychain the items should be imported to
keychain_password String MATCH_KEYCHAIN_PASSWORD - No This might be required the first time you access certificates on a new mac. For the login/default keychain this is your macOS account password
force Fastlane::Boolean MATCH_FORCE false Yes Renew the provisioning profiles every time you run match
force_for_new_devices Fastlane::Boolean MATCH_FORCE_FOR_NEW_DEVICES false Yes Renew the provisioning profiles if the device count on the developer portal has changed. Ignored for profile types ‘appstore’ and ‘developer_id’
include_mac_in_profiles Fastlane::Boolean MATCH_INCLUDE_MAC_IN_PROFILES false Yes Include Apple Silicon Mac devices in provisioning profiles for iOS/iPadOS apps
include_all_certificates Fastlane::Boolean MATCH_INCLUDE_ALL_CERTIFICATES false Yes Include all matching certificates in the provisioning profile. Works only for the ‘development’ provisioning profile type
certificate_id String MATCH_CERTIFICATE_ID - No Select certificate by id. Useful if multiple certificates are stored in one place
force_for_new_certificates Fastlane::Boolean MATCH_FORCE_FOR_NEW_CERTIFICATES false Yes Renew the provisioning profiles if the certificate count on the developer portal has changed. Works only for the ‘development’ provisioning profile type. Requires ‘include_all_certificates’ option to be ‘true’
renew_expired_certs Fastlane::Boolean MATCH_RENEW_EXPIRED_CERTS false Yes Automatically renew expired certificates. Note: to renew developer_id and developer_id_installer certificates you must log in with the Account Holder account by using username and password; App Store Connect API key doesn’t work in this case. The expired certificate is removed from the match storage and a new one is created, but the old certificate is not revoked on the Apple Developer Portal — run fastlane match nuke if you need to free up certificate slots
skip_confirmation Fastlane::Boolean MATCH_SKIP_CONFIRMATION false Yes Disables confirmation prompts during nuke, answering them with yes
safe_remove_certs Fastlane::Boolean MATCH_SAFE_REMOVE_CERTS false Yes Remove certs from repository during nuke without revoking them on the developer portal
skip_docs Fastlane::Boolean MATCH_SKIP_DOCS false Yes Skip generation of a README.md for the created git repository
platform String MATCH_PLATFORM ios Yes Set the provisioning profile’s platform to work with (i.e. ios, tvos, macos, catalyst)
derive_catalyst_app_identifier Fastlane::Boolean MATCH_DERIVE_CATALYST_APP_IDENTIFIER false Yes Enable this if you have the Mac Catalyst capability enabled and your project was created with Xcode 11.3 or earlier. Prepends ‘maccatalyst.’ to the app identifier for the provisioning profile mapping
template_name String MATCH_PROVISIONING_PROFILE_TEMPLATE_NAME - No DEPRECATED! Removed since May 2025 on App Store Connect API OpenAPI v3.8.0 - Learn more: https://docs.fastlane.tools/actions/match/#managed-capabilities - The name of provisioning profile template. If the developer account has provisioning profile templates (aka: custom entitlements), the template name can be found by inspecting the Entitlements drop-down while creating/editing a provisioning profile (e.g. “Apple Pay Pass Suppression Development”)
profile_name String MATCH_PROVISIONING_PROFILE_NAME - No A custom name for the provisioning profile. This will replace the default provisioning profile name if specified
fail_on_name_taken Fastlane::Boolean MATCH_FAIL_ON_NAME_TAKEN false No Should the command fail if it was about to create a duplicate of an existing provisioning profile. It can happen due to issues on Apple Developer Portal, when profile to be recreated was not properly deleted first
skip_certificate_matching Fastlane::Boolean MATCH_SKIP_CERTIFICATE_MATCHING false No Set to true if there is no access to Apple developer portal but there are certificates, keys and profiles provided. Only works with match import action
output_path String MATCH_OUTPUT_PATH - No Path in which to export certificates, key and profile
skip_set_partition_list Fastlane::Boolean MATCH_SKIP_SET_PARTITION_LIST false Yes Skips setting the partition list (which can sometimes take a long time). Setting the partition list is usually needed to prevent Xcode from prompting to allow a cert to be used for signing
force_legacy_encryption Fastlane::Boolean MATCH_FORCE_LEGACY_ENCRYPTION false Yes Force encryption to use legacy cbc algorithm for backwards compatibility with older match versions
offline_profile Fastlane::Boolean MATCH_OFFLINE_PROFILE false Yes Enable profile with ‘Offline Support’ (7 day validity). Requires Apple ID login, not supported with App Store Connect API key authentication
verbose Fastlane::Boolean MATCH_VERBOSE false Yes Print out extra information and all commands

Lane Context Shared Values

This action writes the following values to Actions.lane_context[SharedValues::...]:

Key Description
SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING The match provisioning profile mapping
SharedValues::SIGH_PROFILE_TYPE The profile type, can be app-store, ad-hoc, development, enterprise, can be used in build_app as a default value for export_method

Examples

sync_code_signing(type: "appstore", app_identifier: "tools.fastlane.app")
sync_code_signing(type: "development", readonly: true)
sync_code_signing(app_identifier: ["tools.fastlane.app", "tools.fastlane.sleepy"])
match # alias for "sync_code_signing"

Source & Upstream