What this thread does
Do first: set CODE_SIGN_STYLE to Manual only for a deliberately managed profile, then inspect the matching certificate and private key before changing archive settings.
Short answer
For doesn't include signing certificate, compare the resolved profile and identity, not just their display names. As of November 2026, current Apple signing docs require an identity comprising a certificate and its matching private key; a downloaded certificate alone cannot sign code (TN3161). The profile must authorize that certificate, team, app identifier and required capabilities (TN3125).
Choose / don't choose
- Manual: choose to create and update signing assets yourself; don't set only the profile name and leave certificate/team selection inconsistent (settings).
- Automatic: choose when Xcode may create/update signing assets and the runner has the required account access; don't combine automatic management with stale forced manual-profile settings (settings).
Not for: archive privacy-manifest validation; see apple-privacy-manifest-release-archive-primary-sources.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
CODE_SIGN_STYLE | Manual for self-managed assets; Automatic for Xcode-managed creation and updates | Current Xcode docs | settings |
DEVELOPMENT_TEAM | Intended team's actual Team ID; match profile/team for the archive target | Current Xcode docs | settings |
PROVISIONING_PROFILE_SPECIFIER | Intended profile name or UUID, selected with DEVELOPMENT_TEAM | Current Xcode manual signing | settings |
CODE_SIGN_IDENTITY | Common name of the intended valid certificate | Current Xcode docs | settings, TN3161 |
CONFIGURATION | Build configuration, such as Release; inspect its resolved values | Current Xcode docs | settings |
Order of operations
1. In Keychain Access inspect the intended identity and its associated private key. Confirm certificate validity and keychain availability to the actual build user (TN3161). 2. Inspect the selected profile's authorized certificates, app identifier, team, expiration and entitlements. TN3125 names DeveloperCertificates and shows profile decoding with security cms -D -i; its plist view is useful for inspection, while modern systems use the DER-encoded profile as authority (TN3125). 3. Select the same scheme, configuration and destination as the archive, then inspect xcodebuild -showBuildSettings for every signed target. Compare the five settings above and any per-configuration overrides. Xcode 16's release notes document that this command now uses the build system and can vary with -scheme/-destination; those flags must match the intended action.
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
doesn't include signing certificate | Selected certificate is not authorized by the selected profile | Align certificate and profile in the archive configuration; regenerate the profile if needed | MariuzM, June 29, 2025, TN3125 |
| Code-signing identity | Signing requires a certificate and matching private key | Ensure the certificate has its matching private key | TN3161 |
In fastlane discussion 21581, vangelis-vargas's November 3, 2025 comment reports that a solution worked for a similar issue. That report illustrates configuration sensitivity; it does not make its Fastlane snippet a universal signing recipe.
Missing
- Actual Team ID, identity common name and profile are project-specific; no placeholder credentials can establish a match.
- Automatic signing does not remove account permissions, entitlement or distribution-method requirements.
Checked
2026-11-12; current Apple settings, TN3161/TN3125 and their dated revisions, Xcode 16 release notes, dated Expo report and fastlane discussion read. No keychain, signing or archive command executed.
Started from a post by @Apple, packaged by the editor. Original post