Every week, someone in a Reddit thread or a Discord server asks the same question: Can I build an iOS app on Windows?Yes. You can. But before you spend a weekend wiring up workarounds, let's talk about what it actually costs, what breaks, and what Apple's legal team thinks about it.
The Two Popular Workarounds
1. VirtualBox with macOS as a guest OS
VirtualBox is free, open-source virtualization software. You install it on Windows, install macOS as a guest OS, then install Xcode inside that. On paper, it works.In practice, three things make this a bad path:
- It violates Apple's license. The macOS Software License Agreement only permits running macOS on Apple-branded hardware. A Windows PC is not Apple-branded hardware. If you plan to ship to the App Store, you're starting in breach of the rules you're about to submit under.
- Performance is poor. You're emulating an OS on hardware it was never designed for. Builds are slow, graphics are flaky, and the Simulator will test your patience.
- The walls are closing in. Modern Xcode is built around Apple Silicon. visionOS already requires it. This route gets worse every year, not better.
2. Amazon EC2 Mac instances
EC2 Mac rents you a real Mac in AWS data centers. You connect over VNC or SSH and use Xcode normally. No EULA issues. No emulation. This is what Apple itself recommends for CI and build farms.The pricing is where it gets spicy:
- mac2.metal (Apple Silicon M1): around $0.65 per hour
- mac1.metal (Intel): around $1.08 per hour
- 24-hour minimum allocation on the dedicated host. Per Apple's license, AWS cannot release the host until 24 hours after you allocate it. Stopping the instance does not stop the bill.
That 24-hour minimum is the gotcha. A "quick test" costs you at least $15.60 on M1. Leave a host allocated for a month, and you're looking at roughly $470. Leave it running for a year, and you've paid for three brand-new Mac minis.EC2 Mac is built for teams with CI pipelines. For a solo developer tinkering on nights and weekends, it's a money pit.
My Recommendation: Just Buy a Used Mac
Owning the machine is almost always the cheapest path to serious tinkering. No hourly meter. No EULA workaround. No waiting on a 24-hour teardown before AWS stops charging you.A few things to know before you shop:
- Buy Apple Silicon, not Intel. This is the single most important call. A 2018 Intel Mac mini looks cheap on eBay, but it can't install the latest macOS, which means it can't run the current Xcode, which means you can't submit to the App Store. Skip it.
- The sweet spot is a used M1 Mac mini. Refurbished M1 minis (8GB RAM, 256GB SSD) run around $400 to $550 on Apple's refurbished store, Back Market, or Swappa. That's the cheapest legal, sustainable on-ramp into iOS development in 2026.
- Stretch for 16GB if you can. 8GB works, but Xcode and the Simulator will chew through it. A used M2 with 16GB is worth the extra $150.
- Storage matters less than you'd think. Xcode plus a fresh project takes around 50GB. If you plan to keep multiple Xcode versions installed or work with video, go for 512 GB.
Buy once. Build as much as you want. No subscription creep.
The Bottom Line
Can you build an iOS app on Windows? Technically, yes. Legally and practically, you shouldn't.VirtualBox breaks Apple's license. EC2 Mac is for companies, not hobbyists. A used Apple Silicon Mac mini costs less than three months of EC2 billing and pays for itself forever.If you're serious about iOS, buy the Mac.
If you want to support us, please share the article and use the link below. Every click counts!

Discussion