"iOS applications cannot be created without Apple’s compiler,
and they cannot be deployed without Apple’s certificates and
code-signing tools. This means that a Xamarin.iOS for Visual Studio
installation requires a connection to a networked Mac OS X computer
in order to perform these tasks."
2 回答
是的,你需要一台Mac . 这并不是对Xamarin的限制,因为Apple限制人们购买他们的硬件 .
无论您是想修补,发布应用程序还是设置构建管道,您最好的选择都是MacinCloud或Mac Mini(即本地网络上的东西) .
UPDATE :在2017年建设大会期间,Xamarin Live Player宣布了!
Xamarin需要访问联网的Mac来构建和调试iOS应用程序 . 没有物理Mac,没有办法为原生iOS应用程序执行构建,因为Apple只为iOS OS提供了iOS SDK .
来自Xamarin.iOS开发人员文档:
https://developer.xamarin.com/guides/ios/getting_started/installation/windows/#Requirements
你最好的选择可能是Mac Mini . 你可以在网上找到它们以节省一点钱,或者如果你'd prefer not to buy used they sometimes show up on Apple'的翻新网站:https://www.apple.com/shop/browse/home/specialdeals/mac
另一种选择可能是使用 Cloud 选项,但我从未使用过这些服务中的一种,但这里有两个我以前听说过的:http://www.macincloud.com/和http://www.xcodeclub.com/
另请注意,即使技术上可行,也不支持并且违反Apple的许可协议,尝试在非Apple硬件上运行macOS VM .