Combined with WSL on a windows PC or directly on a Linux box.
You will still need to be able to sign your app in Xcode on a Mac , for that you could buy credit on a cloud based Mac solution like Mac in cloud.
Once signing is done you could host your code on GitHub and then use Xcode Cloud to generate builds for use in App Store Connect or TestFlight.
I will say this though, the work around is a PIA, if you’re serious about it, I would highly suggest saving up for even a used Mac, just double check that it’s supported for current and future updates.
the build has to happen on macOS either way. the usual setups are a used mac mini you remote into or a cloud mac, or a ci runner that builds and ships to testflight. expo gets you far on windows but anything that touches the simulator needs a mac.
react native / expo: you can get really far on windows. eas build runs the ios build on their macs and can submit to testflight, and the free plan has a monthly build allowance. test on a real iphone with expo go or a dev build.
flutter: write and test on android, then let codemagic or github actions (they have macos runners) build the ipa and push it to testflight. codemagic can even create the signing certs for you with an app store connect api key, so you don't need a mac for that part.
native swift/swiftui: this is where it hurts. xtool on linux or wsl works for small swiftpm apps, but there's no simulator and no previews. for real swiftui work you basically want xcode.
hackintosh is pretty much over now. xcode 27 is apple silicon only so the intel route is gone, and macos vms on pc hardware are slow and against apple's license anyway.
for the stuff that needs xcode (simulator, a weird signing error, debugging native crashes) people either buy a used m1 mini, which goes for a few hundred bucks, or rent one remotely. full disclosure i run macrun, we rent m6 minis for $15 a day if you only need a mac for a few sessions. if you're going to do ios long term tho a used mini is the better deal
honestly depends how far you need to go. you can write the code anywhere, and once the project actually builds, cloud CI (EAS, codemagic, github actions, xcode cloud) can handle the builds without you ever touching a mac.
the annoying part is the first build. signing errors, provisioning profiles, pods breaking, wanting to see the app in the simulator... doing that through CI logs is miserable. that's where you really want a mac in front of you, even for a day. rent one, borrow one, whatever, get it building once and then move it to CI.
2
u/roflwaffle666 18d ago
Check out XTOOL
2
u/jrboze91 18d ago
if you’re doing this on a budget, there is a work around such as using this https://github.com/xtool-org/xtool
Combined with WSL on a windows PC or directly on a Linux box.
You will still need to be able to sign your app in Xcode on a Mac , for that you could buy credit on a cloud based Mac solution like Mac in cloud.
Once signing is done you could host your code on GitHub and then use Xcode Cloud to generate builds for use in App Store Connect or TestFlight.
I will say this though, the work around is a PIA, if you’re serious about it, I would highly suggest saving up for even a used Mac, just double check that it’s supported for current and future updates.
1
u/dallascyclist 19d ago
Renting time one one in the cloud or using time via one of the services expo etc.
1
u/razonbrade 19d ago
Github can build and send it to testflight
1
u/CHILL_POPS 19d ago
Use expo. Built my first app and published on AppStore using windows PC. But you do need an iPhone for sure. There is no way you getting around that
1
u/Plastic-Risk-6309 19d ago
the build has to happen on macOS either way. the usual setups are a used mac mini you remote into or a cloud mac, or a ci runner that builds and ships to testflight. expo gets you far on windows but anything that touches the simulator needs a mac.
1
u/Available_Pen7292 19d ago
expo
1
u/tiaanvdr 18d ago
Emulating a Mac, I used to do this a lot in college. Bit janky and annoying though
1
u/bartek239 18d ago
Just get a Linux machine
1
u/newtablecloth 18d ago
depends a lot on what you're building
react native / expo: you can get really far on windows. eas build runs the ios build on their macs and can submit to testflight, and the free plan has a monthly build allowance. test on a real iphone with expo go or a dev build.
flutter: write and test on android, then let codemagic or github actions (they have macos runners) build the ipa and push it to testflight. codemagic can even create the signing certs for you with an app store connect api key, so you don't need a mac for that part.
native swift/swiftui: this is where it hurts. xtool on linux or wsl works for small swiftpm apps, but there's no simulator and no previews. for real swiftui work you basically want xcode.
hackintosh is pretty much over now. xcode 27 is apple silicon only so the intel route is gone, and macos vms on pc hardware are slow and against apple's license anyway.
for the stuff that needs xcode (simulator, a weird signing error, debugging native crashes) people either buy a used m1 mini, which goes for a few hundred bucks, or rent one remotely. full disclosure i run macrun, we rent m6 minis for $15 a day if you only need a mac for a few sessions. if you're going to do ios long term tho a used mini is the better deal
1
u/MastodonSuperb7344 6d ago edited 6d ago
honestly depends how far you need to go. you can write the code anywhere, and once the project actually builds, cloud CI (EAS, codemagic, github actions, xcode cloud) can handle the builds without you ever touching a mac.
the annoying part is the first build. signing errors, provisioning profiles, pods breaking, wanting to see the app in the simulator... doing that through CI logs is miserable. that's where you really want a mac in front of you, even for a day. rent one, borrow one, whatever, get it building once and then move it to CI.
wrote up the options in more detail here if useful: https://justmac.app/en/blog/build-ios-app-on-windows
(full disclosure, I run justmac.app which is one of the rent-a-mac options, but the post covers the free ways too)
1
u/[deleted] 19d ago
[removed] — view removed comment