Maybe you'll get away with it by running macOS on a virtual machine, maybe you won't. If you plan on developing for the platform officially (submitting apps to the App Stores) I recommend you invest in a Mac. If you do, you basically are going rogue. You can't officially run macOS (and by extension Xcode) on non-Apple hardware. It is unless you are running it in a virtual machine on a Mac (which is not a solution for the poster).