Testing iOS simulation in React Native?

I read about iOS simulation for building apps in React Native and it seems impossible to simulate iOS apps without macOS? Surely can't be the case right? Does anyone know of some workarounds so I can develop and test on Windows?
45 Replies
Jochem
Jochem2w ago
I'm not 100% sure it's still the case, but for the longest time the best/only way to test iOS stuff was to buy a mac mini and an Apple developer license
ἔρως
ἔρως2w ago
you can buy a cheap used mac laptop
ἔρως
ἔρως2w ago
Luke Miani
YouTube
Living with the CHEAPEST Apple Ecosystem in 2025
Thanks to ESR for sponsoring! Shop ESR HaloLock Classic Hybrid Case (Camera Control, Stash Stand): https://amzn.to/3BVCsZe The last few years have seen a massive drop in prices for used Apple products- and that got me wondering how little you can spend to get a usable experience! Today with a budget of just $300 to buy an iPhone, MacBook, and ...
ἔρως
ἔρως2w ago
this might get you an idea of what to look for
Jochem
Jochem2w ago
you might be able to hackintosh it too if you only need a one-off?
ἔρως
ἔρως2w ago
it's possible, but thats actually illegal, according to the mac tos
Jochem
Jochem2w ago
oh huh, nevermind then!
ἔρως
ἔρως2w ago
if you want 100% legit, you need the overpriced hardware
glutonium
glutonium2w ago
why not use a vm? does macOS not work in vm?
ἔρως
ἔρως2w ago
it goes against the license you are not allowed to run macos on non-apple hardware it works, and you can trick your vm to look like an intel mac, but it's not legal it also runs like ass without gpu acceleration
glutonium
glutonium2w ago
damn.. hmmm... well the "illegality" sounds like bs to me like this is a simple task. why would u want to buy a whole MacBook just so u can see how your app looks on macOS also vince, why not use an iphone if u have one laying around. is there no option for that?
ἔρως
ἔρως2w ago
it's not a simple task
Jochem
Jochem2w ago
"illegal" in this case is "breaking TOS", which makes it against Discord TOS to discuss... but also, you generally have to emulate iOS inside macos inside the VM I think, and I don't think you can nest virtualization
glutonium
glutonium2w ago
simple as in, u need to have an ios emulator running right?
ἔρως
ἔρως2w ago
you can virtualization nesting isnt something new no you need to emulate the cpu, gpu, hardware and os with simplified network
glutonium
glutonium2w ago
by simple m meaning like, the need is simple. other than that there is no need for it
ἔρως
ἔρως2w ago
it's not an easy task, specially if you want it to run at a decent pace
glutonium
glutonium2w ago
hmm i see
ἔρως
ἔρως2w ago
you have to trick the ios os into thinking that it is in a phone a real phone which, again, illegal
glutonium
glutonium2w ago
i tried making an android app in react native i used expo. which allows u to emulate the app in an emulator or web or on mobile
ἔρως
ἔρως2w ago
yes, in qemu, for android
glutonium
glutonium2w ago
what's qemu
ἔρως
ἔρως2w ago
almost everything uses qemu under the hood
glutonium
glutonium2w ago
expo doesn't work for ios?
ἔρως
ἔρως2w ago
try it
glutonium
glutonium2w ago
lemme search up
ἔρως
ἔρως2w ago
if it does, i would be surprised as far as i know, the only legitimate way to run apple stuff, the legal way, is to run it on apple hardware
glutonium
glutonium2w ago
No description
glutonium
glutonium2w ago
well expo works with react native so i guess it makes sense that it works on ios as well the googles cloud ide, google idx also allows app development in react native. it provides emulator in the web. i wonder if OP can use that
ἔρως
ἔρως2w ago
but does it run the ios apps on windows? and on linux? what it says is that you can make ios apps, not run them wait, the 2nd link says run but doesnt say the required host
glutonium
glutonium2w ago
when u say run, u mean running the app in an emulator right?
ἔρως
ἔρως2w ago
yes
glutonium
glutonium2w ago
No description
glutonium
glutonium2w ago
ok so it seems like u DO need an IOS device..
ἔρως
ἔρως2w ago
yeah pretty useless for his use-case the easiest is an older ios device for cheap cheap cheap
glutonium
glutonium2w ago
i checked google idx it seems like it doesn't support ios emulators yet all though it is a hot demand with 279 votes asking for it
ἔρως
ἔρως2w ago
https://www.apple.com/legal/sla/docs/iOS18_iPadOS18.pdf
2. Permitted License Uses and Restrictions. (a) Subject to the terms and conditions of this License, you are granted a limited non-exclusive license to use the Apple Software on a single Apple-branded Device.
ios emulation will probably never happen because of that line it only exists, legally, in macos
Jochem
Jochem2w ago
1) Get any device 2) Get a metal apple logo really hot 3) Press hot metal to device Tada! Apple Branded devices
ἔρως
ἔρως2w ago
🤣 well, it is branded
Jochem
Jochem2w ago
I'm sure there's a definition of apple-branded device somewhere in the TOS, but if there's not it'd be hilarious to argue that it's apple branded just cause you added a sticker
ἔρως
ἔρως2w ago
there probably is
vince
vinceOP2w ago
Thanks guys. I have a ~2020 Macbook Air (before M1) hopefully that will be enough Really ridiculous I can't test iOS apps properly without an iPhone though 😐
ἔρως
ἔρως2w ago
you can, in that macbook air if you have LOTS of cooling
vince
vinceOP2w ago
Lol alright I hope it runs decent I couldn't even run Oldschool Runescape on this thing
ἔρως
ἔρως2w ago
yeah, it might struggle

Did you find this page helpful?