Using Apple's Xcode Cloud with Gitea

Hi,
I want to link my Gitea instance to Apple’s Xcode Cloud. BUT they only support GitHub, Bitbucket and GitLab. :cry:

SO… I was hoping someone else knew of a way to achive this by maybe tricking Xcode Cloud into believing it was talking to a GitLab instance (it doesn’t seem to like this as the Application ID needs to be 64 characters long and Gitea’s are shorter… Or maybe some other manual way of linking them I’ve not found…

So far my solution will be to link Xcode Cloud to GitHub and mirroring my repo there from Gitea but obviously that’s not idea (and I’ve not yet tested it even works!) :see_no_evil:

There are an issue but no response from Apple.

https://developer.apple.com/forums/thread/107055

1 Like

Humm… 5 years old with no reply. Can’t imagine that’s happening any time soon!

Wonder if Gitea could “fake” GitLab’s API’s… :thinking:

Gitea’s API could be considered as fake GitHub Enterprise’s

1 Like

Anyone found any workaround for this? 2025 and Apple still only offers github enterprise, bitbucket server and gitlab as options for using their CI systems.

@hactar, The solution I’m using (breifly mentioned in the OP) is mirroring all my Gitea private repos to private GitHub copies and then setting up the connection from there. I never do anything directly on GitHub so don’t suffer all the limits from there.
The Gitea mirroring is instant (close to it) and maintains all branches etc so works great.
This also has the advantage of giving you a free backup for if you’re personal server blows up…

Thanks for the idea, yeah I was thinking of doing the same, but my project relies on SPMs that are stored in other private gitea repos. I could mirror those on github as well, but my xcode project would still depend on the gitea repo, so xcode cloud would not be able to access it.

Were you in the same situation? I guess I could make xcode depend on the github mirror instead of gitea, but then we’re slowly reaching the point where I might as well move to github fully :sweat_smile:

I don’t have any SPM dependencies (yet… :flushed_face:) but yeah I’m guessing it’ll start to get complex as you said.

Personally I’m using Gitea to avoid paying for the premium GitHub for stuff like gated check-ins… So in my case I suspect I could mirror everything over to GitHub and even setup xcode to use the mirrored SPM’s on GitHub without paying for GitHub. Sooo… Likely would keep doing that.

Would be MUCH better if Gitea could be updated to have a GitHub Enterprise API mirror ability though.

1 Like