Restore support for certificate type DEVELOPER_ID_APPLICATION_G2#498
Merged
priitlatt merged 4 commits intoJun 10, 2026
Merged
Conversation
artemii-yanushevskyi
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In PR #467 (released in 0.59.0) we removed the
DEVELOPER_ID_APPLICATION_G2certificate type because Apple had seemingly deprecated it — requests referring to this value started returning 400 responses, breaking macOS direct distribution signing flows.Apple now declares
DEVELOPER_ID_APPLICATION_G2as a valid and documented certificate type again (see the App Store Connect API CertificateType reference). This PR restores support for it, effectively reverting #467.Changes
DEVELOPER_ID_APPLICATION_G2value tocodemagic.apple.resources.CertificateType.CertificateType.resolve_applicable_typesfor macOS direct distribution profile types (MAC_APP_DIRECT,MAC_CATALYST_APP_DIRECT), so it is resolved alongsideDEVELOPER_ID_APPLICATION.Effect
This re-enables
DEVELOPER_ID_APPLICATION_G2for:app-store-connect certificates create --type=DEVELOPER_ID_APPLICATION_G2app-store-connect certificates list --type=DEVELOPER_ID_APPLICATION_G2--profile-type=MAC_APP_DIRECT or --profile-type=MAC_CATALYST_APP_DIRECTQA reference
(codemagic-cli-tools) 11:30:50 priit@marmot cli-tools feature/certificate-type-developer-id-application-g2-support uv run app-store-connect --version AppStoreConnect installed at /Users/priit/development/nevercode/cli-tools/.venv/bin/app-store-connect app-store-connect 0.68.0.dev (codemagic-cli-tools) 11:30:56 priit@marmot cli-tools feature/certificate-type-developer-id-application-g2-support uv run app-store-connect certificates list --type DEVELOPER_ID_APPLICATION_G2 --log-api-calls >>> GET https://api.appstoreconnect.apple.com/v1/certificates {'limit': 100, 'sort': 'displayName', 'filter[certificateType]': 'DEVELOPER_ID_APPLICATION_G2'} <<< 200 {'data': [{'type': 'certificates', 'id': '...', 'attributes': {'serialNumber': '...', 'certificateContent': '...', 'displayName': 'CODEMAGIC', 'name': 'Developer ID Application: CODEMAGIC', 'csrContent': None, 'platform': 'MAC_OS', 'expirationDate': '2029-07-05T10:08:18.000+00:00', 'certificateType': 'DEVELOPER_ID_APPLICATION_G2'}, 'relationships': {'merchantId': {'links': {'self': 'https://api.appstoreconnect.apple.com/v1/certificates/.../relationships/merchantId', 'related': 'https://api.appstoreconnect.apple.com/v1/certificates/.../merchantId'}}, 'passTypeId': {'links': {'self': 'https://api.appstoreconnect.apple.com/v1/certificates/.../relationships/passTypeId', 'related': 'https://api.appstoreconnect.apple.com/v1/certificates/.../passTypeId'}}}, 'links': {'self': 'https://api.appstoreconnect.apple.com/v1/certificates/...'}}], 'links': {'self': 'https://api.appstoreconnect.apple.com/v1/certificates?filter%5BcertificateType%5D=DEVELOPER_ID_APPLICATION_G2&sort=displayName&limit=100'}, 'meta': {'paging': {'total': 1, 'limit': 100}}} Found 1 Signing Certificate matching specified filters: certificateType=DEVELOPER_ID_APPLICATION_G2. -- Signing Certificate -- Id: ... Type: certificates Display name: CODEMAGIC Expiration date: 2029-07-05 10:08:18+00:00 Name: Developer ID Application: CODEMAGIC Platform: MAC_OS Serial number: ... Type: DEVELOPER_ID_APPLICATION_G2 Content: "..." Common name: Developer ID Application: CODEMAGIC (...) Did not find any Signing Certificates for given private key