Any way to debug Xcode Cloud / GitHub setup issues?

Hi all,

I've been trying to set up a project with Xcode Cloud and connect it to GitHub. I believe the requirements in https://developer.apple.com/documentation/xcode/requirements-for-using-xcode-cloud#Source-Control-Requirements are met , and I worked through https://developer.apple.com/documentation/xcode/connecting-xcode-cloud-to-github , but after getting the success message in the browser and being sent back to Xcode, I always get:

“Project” could not be added to Xcode Cloud

There was an error accessing https://api.github.com, access denied

Is anyone aware of any way to get more information about what's failing? I can't see any logs or console entries and so am not sure how to proceed...

I was temporarily granted Owner access to the GitHub organisation of which I am a member to set this up, and selected to install it only for my project's repository, as recommended in the docs. The Xcode Cloud app is listed in the Organisation's settings now, and all looks correct, but whatever project config I try to set up in Xcode, it always fails with the access-denied message at the "Grant Access to Your Source Code" stage.

Thanks for any hints on how to debug this further!

I never did work out how to debug it further, but I gave it one last try the next morning... and it worked!

Today I got the "Authorise" button in the Xcode Cloud setup flow again, was walked through the journey on App Store Connect again, and it re-used the existing GitHub app I'd installed yesterday as an organisation owner. At the end, I got the success message:

Xcode Cloud has been successfully connected.

Xcode Cloud can now access your source code.

Continue In Xcode

...which I believe I also got yesterday, but this time it worked!

The only thing I can think of is that the first time I tried this yesterday, I did the journey as a normal Organisation member (not Owner) and asked an Owner to approve it. It looked like it had worked; when I got errors in Xcode, we deleted the app from GitHub, I was given Owner permissions, and tried again - but possibly something in Xcode Cloud had cached the previous setup? (I tried later on a different machine so I think it's likely an Xcode Cloud issue rather than an Xcode issue).

So recommendations if this happens to you:

  • Ensure an owner set up the GitHub app
  • Try again after 12+ hours to allow caches to expire
Any way to debug Xcode Cloud / GitHub setup issues?
 
 
Q