Can Apple Mac OS runs on virtual machine in Windows as build host with Xamarin.iOS?

♀尐吖头ヾ 提交于 2019-11-30 07:11:00

问题


I want to develop an iOS mobile app using Xamarin in Windows. Can Apple Mac OS run on a virtual machine in Windows, rather than run on a separate physical machine as build host?
If possible, any link to the setup would be appreciated, for running Virtualbox, Windows 7, Mac OS.

http://developer.xamarin.com/guides/ios/getting_started/installation/windows/


回答1:


Short answer: Yes it can

Long answer:

As it's been noted in the comments above, you can only legally (wrt license) run a OSX VM on Apple hardware.

IOW if you have a Mac Book Pro (or any Apple hardware) running Windows and a VM running OSX you're fine, both technically and license wise. OTOH you're not fine to use any other (non-Apple) computer brand running Windows and virtualize OSX.

The setup itself will be identical, from Xamarin's tools perpectives (the above linked documents still applies). It will be two computers (one real, one virtual) communicating with each others thru the (virtual) network.




回答2:


As stated above, it is not in Apple's terms of agreement to run OSX on anything but an Apple product so you shouldn't do it.

Although if for some educational reason you were to install OS X Yosemite ("Hackintosh" ) inside of Virtual Box on Windows, set the Network adapter to "Bridged Adapter" and get the Xamarin build host installed and running (as well as Xcode from the App Store), then it might be possible to connect from Visual Studios. But as stated, you shouldn't do it ;)



来源:https://stackoverflow.com/questions/27090796/can-apple-mac-os-runs-on-virtual-machine-in-windows-as-build-host-with-xamarin-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!