Xcode Cloud error 401

Any operation related to Xcode Cloud (e.g., viewing the dashboard, creating a workflow) fails immediately across all Xcode projects, including brand-new empty projects. The error is consistent and always appears as:

API Invalid status code: 401. Domain: XcodeCloudCombineAPI.XCCResponseError Code: 1

System Information: macOS Version 15.6.1 (Build 24G90)

  "details" : "Error alert: API Invalid status code: 401.: XCCResponseError(responseErrorType: XcodeCloudCombineAPI.XCCResponseError.XCCResponseErrorType.invalidStatusCode(XcodeCloudCombineAPI.LegacyHttpStatus.unauthorized), requestUrl: Optional(https:\/\/appstoreconnect.apple.com\/ci\/api\/teams\/\/apps\/find?bundle_id=), traceId: Optional(\"2ab09bea8da9ef39\"), retryAfterSecsStr: nil, response: Optional(<NSHTTPURLResponse: 0x600000c6a800> { URL: https:\/\/appstoreconnect.apple.com\/ci\/api\/teams\/\/apps\/find?bundle_id=} { Status Code: 401, Headers {\n    \"Content-Length\" =     (\n        0\n    );\n    Date =     (\n        \"Fri, 05 Sep 2025 10:04:07 GMT\"\n    );\n    Server =     (\n        nginx\n    );\n    \"Set-Cookie\" =     (\n        \"dqsid=; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=\/; Secure; HTTPOnly\",\n        \"dqsid=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTcwNjY2NDQsImp0aSI6IlNQZ1FxVXd1UFF1UjI1X2wtZ2ZjN2cifQ.uoE9MRTx-TCY03Sw1qgMBcWrPVA8adtKd-nOZVwllS4; Max-Age=1800; Expires=Fri, 05 Sep 2025 10:34:04 GMT; Path=\/; Secure; HTTPOnly\"\n    );\n    \"Strict-Transport-Security\" =     (\n        \"max-age=31536000; includeSubDomains; preload\"\n    );\n    \"x-apple-jingle-correlation-key\" =     (\n        ZNGYRW2NJQJKAYDKU5FGCY6VVE\n    );\n    \"x-b3-traceid\" =     (\n        2ab09bea8da9ef39\n    );\n    \"x-cache-status\" =     (\n        BYPASS\n    );\n    \"x-content-security-policy\" =     (\n        \"script-src 'self' *.apple.com\"\n    );\n    \"x-content-type-options\" =     (\n        nosniff\n    );\n    \"x-daiquiri-instance\" =     (\n        \"daiquiri:15751001:mr36p00it-hyhk07174801:7987:25RELEASE91:daiquiri-amp-dsce-asc-int-002-mr\",\n        \"daiquiri:18493001:mr85p00it-hyhk03154801:7987:25RELEASE91:daiquiri-amp-all-shared-ext-001-mr\"\n    );\n    \"x-frame-options\" =     (\n        SAMEORIGIN\n    );\n    \"x-via\" =     (\n        \"2.0 PS-WUH-01zra68 [BYPASS]\"\n    );\n    \"x-ws-request-id\" =     (\n        \"68bab594_PS-WUH-01zra68_27159-54435\"\n    );\n    \"x-xss-protection\" =     (\n        \"1; mode=block\"\n    );\n} }))\nError Description: Optional(\"API Invalid status code: 401.\")\nRecovery Suggestion: nil\nHelp Anchor: nil",
Answered by DTS Engineer in 856875022

Please sign out of your account in Xcode settings, then log in again. Let us know if that resolves your issue.

same here...

Accepted Answer

Please sign out of your account in Xcode settings, then log in again. Let us know if that resolves your issue.

Having the same issues. Could you fix it? https://developer.apple.com/forums/thread/799637

Xcode Cloud error 401
 
 
Q