if you google ios emulator or virtual machine there's a bunch of results but they all look sketchy asf. such things exist for android but that's open source so it's easy and legal.
The least sketchy think ive found is somethong that emulates ios in a way tp run ios apps, buts its picky on what hardware it works with ie your phone and its also not been really tested well, but its free.
Im not gonna link it or name it here because while the sites say its legal, I'm not gonna chance it.