Skip to content

Restore support for certificate type DEVELOPER_ID_APPLICATION_G2#498

Merged
priitlatt merged 4 commits into
masterfrom
feature/certificate-type-developer-id-application-g2-support
Jun 10, 2026
Merged

Restore support for certificate type DEVELOPER_ID_APPLICATION_G2#498
priitlatt merged 4 commits into
masterfrom
feature/certificate-type-developer-id-application-g2-support

Conversation

@priitlatt

Copy link
Copy Markdown
Contributor

In PR #467 (released in 0.59.0) we removed the DEVELOPER_ID_APPLICATION_G2 certificate 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_G2 as 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

  • Re-add the DEVELOPER_ID_APPLICATION_G2 value to codemagic.apple.resources.CertificateType.
  • Re-add it to CertificateType.resolve_applicable_types for macOS direct distribution profile types (MAC_APP_DIRECT, MAC_CATALYST_APP_DIRECT), so it is resolved alongside DEVELOPER_ID_APPLICATION.

Effect

This re-enables DEVELOPER_ID_APPLICATION_G2 for:

  • app-store-connect certificates create --type=DEVELOPER_ID_APPLICATION_G2
  • app-store-connect certificates list --type=DEVELOPER_ID_APPLICATION_G2
  • macOS direct distribution signing flows invoked with --profile-type=MAC_APP_DIRECT or --profile-type=MAC_CATALYST_APP_DIRECT
QA 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

@priitlatt priitlatt merged commit f5bdb1a into master Jun 10, 2026
15 checks passed
@priitlatt priitlatt deleted the feature/certificate-type-developer-id-application-g2-support branch June 10, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants