Question: can ios be installed on a pc?
Answer: Xcode contains everything you need to build iOS apps, and it only runs on macOS! That's when the problems start. You want to make an iOS app with your Windows PC, but you can't buy a PC or laptop with macOS pre-installed on it. Unlike Windows, Apple doesn't license its operating system to other computer manufacturers.