如何在Windows上使用Swiftui来制作iOS应用?
因此,我已经有编程经验(Java,JS,Python),但是我是Swift的完整新手。我有一台运行窗口的计算机,但是我想使用swiftui,并假设我不能没有macOS。我听说使用Hackintosh解决这个操作系统问题,但是我还有什么可以做的吗?感谢谁能帮助我。
So I have experience with programming already (Java, JS, Python), but I’m a complete newbie with Swift. I have a computer that runs Windows, but I would like to use SwiftUI and assume that I can’t without having macOS. I’ve heard of using Hackintosh to get around this OS problem, but is there anything else I could do? Thanks to whoever can help me with this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
创建本机iOS应用程序的本机方法是使用XCode.App完成的,该应用只能在MACOS上运行。
Hackintosh是在不支持的硬件上运行MACOS的解决方案。这是可能的,但是要为设置它的许多夜晚做好准备,除非您拥有完全兼容的硬件。
考虑的另一种方法是在虚拟机中运行它,请参见此stackoverflow问题。
最佳解决方案:考虑到Apple开发人员帐户每年约100美元,购买用于开发的二手Macmini并不是一笔巨大的付款(如果钱是问题的话)。
Native way to create native iOS apps is done using XCode.app, which can only be run on MacOS.
Hackintosh is a solution to run MacOS on unsupported hardware. It is possible, but be prepared for many nights spent setting it up, unless you have perfectly compatible hardware.
Another way to consider is to run it in a virtual machine, see this StackOverflow question.
BEST solution: Considering that apple developer accounts is about $100 a year, it is not a huge overpay to buy a used MacMini for your development (if money is an issue).
如果您在VM中设置Ubuntu并用过
https://github.com/tokamakui/tokamak
来自上面的链接:
It looks like you could get some experience without a Mac if you set up Ubuntu in a VM and used
https://github.com/TokamakUI/Tokamak
From the link above:
除了租用云Mac以外,没有其他方法可以使用非Macos操作系统开发iOS/MacOS/Apple Watch项目。您要么买一个,租一个或建造了一个hackintosh
There are no ways (other than renting a cloud mac) to develop IOS/MacOS/Apple Watch project using non-MacOS operating system. You either buy one, rent one, or built a hackintosh