arrow_back Back to Blog
xcode cloud pricing xcode cloud capacitor ios build testflight

Xcode Cloud Pricing: 25 Free Hours and a Capacitor Setup

·

How much does Xcode Cloud cost? Nothing extra for most small apps. Apple’s Xcode Cloud page, checked December 3, 2026, says the $99-a-year Apple Developer Program includes 25 compute hours a month. Past that you buy a monthly subscription: 100 hours for $49.99, 250 for $99.99, 1,000 for $399.99 or 10,000 for $3,999.99, and you can move up or down at any time.

The price is the easy part. The question we get from founders with a Lovable app is whether Xcode Cloud can build it at all, since it was made for native Swift projects. It can, with one small script, and that script is most of this post.

What a compute hour buys

Apple defines a compute hour as an hour of cloud time spent on one task, such as building or running tests, and gives the example that five 12-minute test runs add up to one hour. Tests run in parallel, but each one is still counted.

PlanHours a monthPrice a monthPer hour
Included with the Developer Program25$0$0
Subscription100$49.99$0.50
Subscription250$99.99$0.40
Subscription1,000$399.99$0.40
Subscription10,000$3,999.99$0.40

For a wrapped web app the build itself is short, because the heavy work (bundling the React code) is a normal npm run build. As an example, if one build-and-archive takes 15 minutes, 25 hours covers 100 builds a month. A founder shipping to TestFlight a few times a week uses a fraction of that. The free hours stop being enough when you build on every commit to several branches, or run UI tests on a handful of simulators for each build.

Grid of 100 squares: 25 free Xcode Cloud hours as 15-minute builds, with 16 used by four TestFlight builds a week

What it doesn’t cover

Xcode Cloud builds for Apple platforms only. Your Android build needs somewhere else: a Linux machine is enough for that, and Codemagic or GitHub Actions do it for very little. So for a Capacitor app that ships to both stores you’ll often end up with two pipelines, or with one service that does both.

It also needs your repository on GitHub, GitLab or Bitbucket, which a Lovable project already is once you connect GitHub.

The setup a Capacitor app needs

Xcode Cloud clones the repo and runs xcodebuild on the project it finds. In a Capacitor app that project lives in ios/App, but the web code it wraps hasn’t been built yet, and npx cap sync hasn’t copied it in. Out of the box the build either fails or ships an empty shell.

Apple’s answer is custom build scripts. They live in a folder called ci_scripts next to the Xcode project (so ios/App/ci_scripts), and a file named ci_post_clone.sh runs right after the clone. Ours looks like this:

#!/bin/sh
set -e
brew install node
cd ../../..
npm ci
npm run build
npx cap sync ios

Three details from Apple’s docs that trip people up:

  • Make it executable (chmod +x ci_post_clone.sh) and keep the shebang on the first line. Without both, Xcode Cloud runs it with zsh, which can fail in odd ways.
  • No sudo. You can’t get admin rights in the script, so install tools with Homebrew, not system installers.
  • Script files don’t carry over. Anything one script creates is gone for the next one, so do the whole web build in the post-clone step.

Environment variables your Vite build reads at build time (the Supabase URL and anon key, for example) go into the workflow’s environment settings in App Store Connect, not into the repo.

CocoaPods went read-only yesterday

One more reason to check your ios/ folder this week: CocoaPods trunk became read-only on December 2, 2026. Existing pods still install, so nothing broke overnight. But Capacitor 8 creates new iOS projects with Swift Package Manager, and Xcode Cloud resolves SPM packages on its own with no extra step. An older project still on CocoaPods needs pod install in the post-clone script as well, and it will need moving to SPM the first time a plugin update ships only there. We covered what changed in the Capacitor 8 upgrade.

Xcode Cloud or something else?

  • Xcode Cloud if you only care about iOS for now, want TestFlight delivery set up from inside App Store Connect, and the 25 free hours fit. They usually do.
  • Codemagic if you want iOS and Android in one place. Its free macOS minutes are smaller than Apple’s 25 hours, but one pipeline for both stores is worth a lot when someone else will maintain it.
  • GitHub Actions if a developer on your side already writes YAML and wants everything next to the code.

Whichever you pick, the signing certificates and the first submission are still manual the first time. That part, plus Apple’s guideline 4.2 review for wrapped web apps, is where most first launches stall.

If you’d rather not set it up

We turn Lovable apps (and other React web apps) into Capacitor apps, set up the cloud builds for both stores, and submit them. It’s $300, $600 or $1,000 by the number of screens, and the build pipeline is part of it. Tell us about your app and we’ll tell you which package fits.