Build IPA on virtual machine

Hi simple question:
I want to release my game on ios but I am developing on my PC. Is it fine if I run ue4 on a virtual machine(vmware already works and i have mac os sierra) and copy the project to that machine to build the ipa? Like from a legal perspective: will apple be able to see that the app was build on a „illegal“ machine and ban me from the developer program or will they send lawers after me? Sound like a lot of trouble