Xcode Cloud Developer ID export fails: certificate query returns empty, creation fails with HTTP 409 (7460)


My macOS app, AnimacX, cannot complete Developer ID distribution export in Xcode Cloud. The affected build is 1144, and the preceding build 1143 contains the following certificate lookup and creation failures.

Environment:

  • Team ID: SWWMY4BCX7
  • Bundle ID: app.anix.AnimacX
  • Xcode version recorded in the Build 1143 logs: 27.1 (27A9275)
  • Automatic signing enabled
  • Failing step: Export archive for developer-id distribution
  • xcodebuild -exportArchive exits with code 70

The provisioning log shows this sequence:

  1. Xcode Cloud queries certificates with type DEVELOPER_ID_APPLICATION_MANAGED. The response contains an empty data array and a total count of 0.
  2. Xcode then attempts to create a managed Developer ID Application certificate.
  3. The creation request fails with:
HTTP 409
code: ENTITY_ERROR
resultCode: 7460

You already have a current Developer ID Application Managed
certificate or a pending certificate request.

The export subsequently reports:

No signing certificate "Developer ID Application" found
No "Developer ID Application" signing certificate matching
team ID "SWWMY4BCX7" with a private key was found.
No profiles for 'app.anix.AnimacX' were found.

However, the Certificates page for this team lists two Developer ID Application Managed (Xcode Cloud) certificates, both created by Xcode Cloud and expiring on February 2, 2027. I have an Admin role on the team.

This workflow was working normally until recently, and I have not created, revoked, or otherwise modified any certificates. Building and uploading the macOS app to App Store Connect directly from local Xcode still succeeds. The iOS and tvOS builds and distribution workflows also continue to work normally. The failure is limited to Developer ID distribution export for macOS in Xcode Cloud.

I contacted Apple Developer Support under case 103008194927 and was directed to post here. Screenshots are attached, and I can provide the full distribution logs.

Could an Apple engineer help determine why Xcode Cloud returns no certificates while the creation service reports an existing certificate or pending request? What action is required to restore Developer ID export, and does this require investigation of the team’s cloud-managed signing state?

Answered by Geekdog in 913406022
  1. 在 Xcode 中,完全退出你的 Apple 账户,然后重新登录。
  2. 完全退出 Xcode 应用,并重新打开。
  3. 检查并确保你的 macOS 和 Xcode 都已经更新至最新版本。
    如果完成上述步骤后问题仍然存在,我们建议通过以下操作来强制刷新 Xcode Cloud 证书:
  4. 请你们团队的账户持有人 (Account Holder) 登录 Apple 开发者网站。
  5. 进入 “Certificates, Identifiers & Profiles” (证书、标识符和描述文件) 页面。
  6. 找到并手动撤销 (Revoke) 所有由 Xcode Cloud 创建的 “Developer ID Application Managed (Xcode Cloud)” 证书。
    ⚠️ 重要提示: 撤销旧证书后,请绝对不要手动创建任何新证书。
  7. 完成撤销操作后,请返回 Xcode Cloud 并重新触发一次新的构建。此时,Xcode Cloud 会自动创建一个全新的、无冲突的证书来完成签名。

支持团队给出的方法解决了我的问题

Upvote. I have the exact same issue. It was working fine for weeks, until it stopped to do so!

Accepted Answer
  1. 在 Xcode 中,完全退出你的 Apple 账户,然后重新登录。
  2. 完全退出 Xcode 应用,并重新打开。
  3. 检查并确保你的 macOS 和 Xcode 都已经更新至最新版本。
    如果完成上述步骤后问题仍然存在,我们建议通过以下操作来强制刷新 Xcode Cloud 证书:
  4. 请你们团队的账户持有人 (Account Holder) 登录 Apple 开发者网站。
  5. 进入 “Certificates, Identifiers & Profiles” (证书、标识符和描述文件) 页面。
  6. 找到并手动撤销 (Revoke) 所有由 Xcode Cloud 创建的 “Developer ID Application Managed (Xcode Cloud)” 证书。
    ⚠️ 重要提示: 撤销旧证书后,请绝对不要手动创建任何新证书。
  7. 完成撤销操作后,请返回 Xcode Cloud 并重新触发一次新的构建。此时,Xcode Cloud 会自动创建一个全新的、无冲突的证书来完成签名。

支持团队给出的方法解决了我的问题