Xcode Cloud cannot be setup from Xcode 27

I'm trying to start using Xcode Cloud from a project, but the only thing I get is the message saying "Failed to create workflow" with the actual error being "Could not find item. Domain: XcodeCloudKit.XcodeCloudCommandHandler.CommandHandlerError Code: 5".

Initially, it did lead me to configuring permissions on GitHub. But it failed in the end probably because the git remote of the project was pointing to another organisation, that transferred the ownership to me. I switched remote to my org, but it didn't help. So, I revoked the permission and deleted Xcode Cloud app from my GitHub in hopes that the config process would start again. It does not.

All I get is this senseless error.

Is Xcode Cloud functionality functioning at all in Xcode beta 27 for anyone?

Answered by ViktorCode in 894625022

Figured how to fix that: In Xcode a menu item became available, offering to delete Xcode Cloud data stored locally.

After that I was able to configure the project for use with Cloud.

Accepted Answer

Figured how to fix that: In Xcode a menu item became available, offering to delete Xcode Cloud data stored locally.

After that I was able to configure the project for use with Cloud.

you saved my life, thank you. I was going to revert back to macOS 26,

I think Xcode 27 Beta is quite unstable for setting up the workflow still

tried delete once and create the workflow again works

Update: I got the workflow setup to complete by first using Xcode’s File > Save As Workspace…, then reopening the generated .xcworkspace and configuring Xcode Cloud. Before that, the Xcode console showed Workspace or window was not found when attempting to begin onboarding at XcodeCloudNavigator.Mode.Onboarding.beginFlow. The first cloud run said the workspace was missing from the repository. After committing the workspace, the next run required a workspace-level Package.resolved, which I committed. Build 3 then succeeded for iOS but remained at Resolve package dependencies for watchOS for over 15 minutes, logging only fetches from public repositories. I cancelled it and used Clean and Rebuild on the same commit (453ca3a) without source changes. Build 4 succeeded for both iOS and watchOS on Xcode 27.1. I don’t know the cause; the watchOS hang appears to have been transient.

I'm receiving the same error in both macOS26.7.3 and macOS27.2.1. On both platforms I was using Xcode 27.2.0

Could not find item.
Domain: XcodeCloudKit.XcodeCloudCommandHandler.CommandHandlerError
Code: 5

This happened after I deleted the entry for a specific app form cloud's web interface in (name of app)->Settings->Delete Xcode Cloud Data

@ViktorCode mentioned that there is an option to delete the local cloud data, but I believe this is a misunderstanding. The option in Xcode is the same as in the web interface, it just deletes the entry in the cloud system (if there is a related app in App Store Connect that entry is preserved).
https://developer.apple.com/documentation/xcode/removing-your-project-from-xcode-cloud#Deleting-your-data-from-Xcode-Cloud

I have submitted two FB:

FB25733440			macOS Version 26.7.3 (Build 25G342)
FB25734830			macOS Version 27.2.1 (Build 26B131)

To give some more context, previously the same app started throwing an error:

ITMS-90053: This bundle is invalid

This was on an app that had more than a dozen builds, the latest few already build on the cloud with the same workflow settings (although xcode/macos version I believe were different).
Because I run out of ideas about how to solve it, I decided to delete the cloud app entry (in the past we experience odd bugs like this and deleting and re-registering the app solved them).

So I deleted it and now I tried to add it again from Xcode: Report navigator->Create workflow->Selected the problematic app -> code 5 error