The 30-second answer
Xcode is free to download from the Mac App Store. There is no purchase price, no subscription, and no license fee. The Apple Developer Program (99 USD per year) is required to publish to the App Store. Xcode Cloud has a free tier (25 hours per month). TestFlight is free. The minimum viable first year cost for an indie iOS developer is around 99 dollars total. With a hardware budget, plan 600 to 1,500 dollars one time for a Mac mini and a test iPhone.
A common question among new iOS developers in 2026: is Xcode actually free, or are there hidden costs? This guide gives the complete honest breakdown of what costs money in the iOS development pipeline, from Xcode itself to the Apple Developer Program to Xcode Cloud to hardware. By the end, you will know exactly what to budget for your first iOS app.
The Short Answer
Yes, Xcode is free. You can download it from the Mac App Store, install it on any compatible Mac, and develop and test iOS, iPadOS, macOS, watchOS, tvOS, and visionOS apps without paying anything to Apple.
What costs money is what you do with Xcode after development:
- Publishing to the App Store requires the Apple Developer Program.
- Distributing via TestFlight requires the Apple Developer Program.
- Heavy CI/CD usage of Xcode Cloud requires a paid plan.
- The Mac itself costs money (Apple does not give those away).
Each of those is optional. You can write Swift code, build iOS apps for the simulator, and test on your own personal device for free.
Apple Developer Program: 99 USD Per Year
The Apple Developer Program is required to publish to the App Store. The fee is 99 USD per year for individuals and the same 99 USD per year for organizations (with a DUNS number).
What the 99 USD includes:
- App Store Connect access for publishing apps.
- TestFlight beta distribution (up to 100 internal plus 10,000 external testers per app).
- Code signing certificates for distribution.
- App Store featuring eligibility.
- Access to beta versions of Xcode, iOS, and SDKs.
- StoreKit 2 access for in app purchases.
- Push notification infrastructure.
- iCloud entitlements.
- Apple Developer technical support (5 incidents per year).
What the 99 USD does not include:
- App Store commission. Apple takes 30 percent of your IAP revenue (15 percent if you qualify for the Small Business Program).
- Apple Search Ads spend. Separate budget.
- Xcode Cloud beyond the free tier. Separate plan.
Xcode Cloud Pricing
Xcode Cloud is Apples managed CI/CD service. You can run builds, tests, and TestFlight uploads from the cloud without managing your own build infrastructure.
| Plan | Compute Hours | Cost |
|---|---|---|
| Free | 25 per month | 0 USD |
| Plus | 100 per month | 14.99 USD per month |
| Premium | 250 per month | 49.99 USD per month |
| Pro | 1,000 per month | 99.99 USD per month |
One compute hour is one hour of build time on a single virtual macOS machine. A typical SwiftUI app build takes 5 to 15 minutes per build. The 25 hour free tier supports roughly 100 to 300 builds per month, which is enough for most indie apps.
When Xcode Cloud free tier becomes insufficient, alternatives:
- GitHub Actions: 2,000 free minutes per month on macOS runners. See the Xcode Cloud vs GitHub Actions vs Bitrise comparison.
- Bitrise: 200 free build credits per month.
- Local CI: Use a Mac mini at home as a build server (one time hardware cost, no ongoing fee).
TestFlight: Free
TestFlight beta distribution is fully included in the 99 USD per year Apple Developer Program. There are no per tester fees, no per build fees, and no expiration.
- Up to 100 internal testers (your own Apple Developer team members).
- Up to 10,000 external testers per app (any Apple ID with the test invite).
- Builds expire after 90 days. Upload a new build to refresh.
- Builds require a brief Beta App Review for the first build of each version.
TestFlight has no equivalent on the Google Play side at this scale. iOS developers have a real advantage in beta distribution.
Hardware Requirements for Xcode 26
Xcode 26 requires macOS 15 Sequoia or later. It runs on any Apple Silicon Mac (M1 or newer) and the last few Intel Macs released around 2019 to 2020.
The cheapest viable Mac in 2026:
| Option | Price | Notes |
|---|---|---|
| Refurbished Mac mini M1 (16 GB) | 499 USD | Cheapest viable. Comfortable for SwiftUI work. |
| New Mac mini M4 (16 GB) | 599 USD | Best price to performance for indies. |
| New Mac mini M4 (24 GB) | 799 USD | Recommended for AI features and visionOS. |
| MacBook Air M4 (16 GB) | 1,099 USD | Portable option. |
| MacBook Pro M4 Pro (24 GB) | 1,999 USD | For full time iOS development. |
For comfortable development with iPhone simulator plus Xcode plus browser plus Slack open at once, 16 GB RAM is the practical minimum. 24 GB plus is recommended if you work on AI features (Foundation Models requires Apple Silicon with at least M2) or visionOS development.
Test Device
A real iPhone for device testing is strongly recommended. Refurbished options:
- iPhone XS or 11 refurbished: 150 to 250 USD. Still supports the latest iOS.
- iPhone 13 mini refurbished: 350 to 450 USD. Modern hardware in a small form factor.
- iPhone 15 refurbished: 500 to 650 USD. Latest features.
You can develop without a physical device using the Simulator, but some features (camera, push notifications, Apple Pay, iCloud, certain HealthKit features) only work on real hardware. A 200 dollar refurbished iPhone is the right indie investment.
Total First Year Cost for an Indie iOS Developer
Three scenarios:
Scenario 1: Already Have a Mac and iPhone
- Apple Developer Program: 99 USD per year
- Xcode: 0 USD
- Xcode Cloud free tier: 0 USD
- TestFlight: 0 USD
- Optional SwiftUI boilerplate (The Swift Kit): 99 USD one time
Total: 99 USD (or 198 USD with boilerplate). Year two and beyond: 99 USD.
Scenario 2: Need a Mac, Have an iPhone
- Refurbished Mac mini M1: 499 USD one time
- Apple Developer Program: 99 USD per year
- Xcode plus Cloud free tier plus TestFlight: 0 USD
Total year one: 598 USD. Year two and beyond: 99 USD.
Scenario 3: Starting From Zero
- New Mac mini M4 (16 GB): 599 USD one time
- Refurbished iPhone 11: 200 USD one time
- Apple Developer Program: 99 USD per year
- Xcode plus Cloud free tier plus TestFlight: 0 USD
- Optional The Swift Kit boilerplate: 99 USD one time
Total year one: 997 USD. Year two and beyond: 99 USD.
What About Apple Search Ads?
Apple Search Ads is a separate paid acquisition channel. Cost ranges 5 to 50 dollars per install for indie categories. There is no minimum spend; you bid on App Store search terms and pay only when users tap or install. Most indies skip Search Ads in year one and focus on organic App Store Optimization.
Are There Free Alternatives to Xcode?
No fully equivalent free alternative exists for iOS development. You can edit Swift code in other tools, but you still need Xcode to build, sign, and submit iOS apps because the iOS SDK and Simulator only ship with Xcode.
- Visual Studio Code with Swift extension: Free, decent editing. Still needs Xcode for builds.
- Cursor: Free tier with paid Pro plan. AI assisted Swift editing. Still needs Xcode.
- Windsurf: AI editor. Same Xcode dependency.
- AppCode: Discontinued by JetBrains in 2022. Do not adopt.
- Nova: Mac native editor with Swift support. Decent for editing, still needs Xcode.
The honest answer: install Xcode, no exceptions. Use a complementary editor like Cursor for AI assisted code generation while keeping Xcode for build, simulator, and submission.
Common Costs People Overlook
- App Store screenshots and assets: 0 to 500 USD depending on whether you DIY or hire a designer.
- App icon: 0 to 300 USD. Designer or paid icon templates.
- Marketing website: 0 to 100 USD per year. Vercel hosts free, domain is 12 USD per year.
- Privacy policy and terms: 0 USD via the free iOS Privacy Policy Generator.
- Analytics: 0 to 99 USD per month. TelemetryDeck has a generous free tier; PostHog has a strong indie plan.
- Crash reporting: 0 USD. Apple ships free crash reports in App Store Connect.
- RevenueCat: 0 USD up to 2,500 dollars MTR. See RevenueCat in SwiftUI 2026.
The Swift Kit Saves 100 Plus Hours of Setup
The Swift Kit is 99 USD one time. It ships SwiftUI boilerplate with auth, paywalls, AI features, design system, and analytics already wired. Saves 100 plus engineering hours. At an indie rate of 100 USD per hour, that is 10,000 dollars of equivalent work for 99 USD. Pays back on the first week of development.
Frequently Asked Questions
Can I publish iOS apps without paying Apple?
No. The 99 USD per year Apple Developer Program is required for App Store distribution and TestFlight. You can develop and test on your own device without paying, but you cannot ship to the App Store or distribute beta builds.
Is the 99 USD per year fee waived for non profits or students?
Sort of. Apples Apple Developer Program for Education waives the 99 USD fee for accredited educational institutions. Individual students still pay 99 USD per year. Non profits with 501(c)(3) status can apply for the fee waiver via the Apple Developer Program for Non Profits.
Do I need a paid Apple Developer Program account to test on my own device?
No. Free Apple ID lets you sideload apps to your own device with a 7 day expiration. Works for personal projects and learning. You need the paid program for App Store distribution, TestFlight, and longer device provisioning.
How much does it cost to maintain an iOS app per year?
For a single indie app: 99 USD per year Apple Developer Program plus optional 0 to 50 USD per month CI/CD if Xcode Cloud free tier is exceeded. Most indie apps run under 200 USD per year in operating costs. Your time is the bigger cost; budget 4 to 8 hours per month for updates, App Store reviews, and bug fixes.
Can I run Xcode in a virtual machine on Windows or Linux?
Apples license forbids Xcode on non Apple hardware. You can run Xcode in a Mac VM on Apple hardware (one Mac running multiple macOS VMs), but not on Windows or Linux. If you need iOS development from a Windows machine, options include MacStadium (cloud Mac access from 79 USD per month) or buying a Mac mini for the home network.
Where to Go Next
- How Much Does It Cost to Build an iOS App for the broader cost breakdown including dev time.
- How to Launch iOS App on the App Store for the step by step submission walkthrough.
- Xcode Cloud vs GitHub Actions vs Bitrise for the CI/CD comparison when you outgrow the free tier.