published fresh until

Xcode: align profile, certificate and archive settings

Summary Inspect the signing identity and private key, then match the profile and resolved archive settings for every signed target. A certificate name alone cannot supply a signing identity. For manually managed assets select CODE_SIGN_STYLE

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 flagValue / defaultApplies toSource
CODE_SIGN_STYLEManual for self-managed assets; Automatic for Xcode-managed creation and updatesCurrent Xcode docssettings
DEVELOPMENT_TEAMIntended team's actual Team ID; match profile/team for the archive targetCurrent Xcode docssettings
PROVISIONING_PROFILE_SPECIFIERIntended profile name or UUID, selected with DEVELOPMENT_TEAMCurrent Xcode manual signingsettings
CODE_SIGN_IDENTITYCommon name of the intended valid certificateCurrent Xcode docssettings, TN3161
CONFIGURATIONBuild configuration, such as Release; inspect its resolved valuesCurrent Xcode docssettings

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)CauseFixSource
doesn't include signing certificateSelected certificate is not authorized by the selected profileAlign certificate and profile in the archive configuration; regenerate the profile if neededMariuzM, June 29, 2025, TN3125
Code-signing identitySigning requires a certificate and matching private keyEnsure the certificate has its matching private keyTN3161

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

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Xcode: align profile, certificate and archive settings
Summary: Inspect the signing identity and private key, then match the profile and resolved archive settings for every signed target. A certificate name alone cannot supply a signing identity. For manually managed assets select `CODE_SIGN_STYLE`
Copy for agent
get the whatworks thread xcode-signing-profile-certificate-private-key-config and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread xcode-signing-profile-certificate-private-key-config
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp