如何在Windows上使用Swiftui来制作iOS应用?

发布于 2025-01-28 06:43:34 字数 138 浏览 4 评论 0原文

因此,我已经有编程经验(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

£噩梦荏苒 2025-02-04 06:43:34

创建本机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).

池予 2025-02-04 06:43:34

如果您在VM中设置Ubuntu并用过
https://github.com/tokamakui/tokamak

来自上面的链接:

关于:
SwiftUI兼容的框架,用于构建使用WebAssembly的浏览器应用程序和其他平台的本机应用程序

要求
...

  • Swift 5.6或更高版本,如果您想使用Linux,则Ubuntu 18.04/20.04。目前不支持其他Linux发行版。

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:

About:
SwiftUI-compatible framework for building browser apps with WebAssembly and native apps for other platforms

Requirements
...

  • Swift 5.6 or later and Ubuntu 18.04/20.04 if you'd like to use Linux. Other Linux distributions are currently not supported.
最舍不得你 2025-02-04 06:43:34

除了租用云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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文