[英]How can I use SwiftUI on Windows to make an iOS app?
So I have experience with programming already (Java, JS, Python), but I'm a complete newbie with Swift.所以我已经有编程经验(Java、JS、Python),但我是 Swift 的新手。 I have a computer that runs Windows, but I would like to use SwiftUI and assume that I can't without having macOS.
我有一台运行 Windows 的计算机,但我想使用 SwiftUI 并假设我不能没有 macOS。 I've heard of using Hackintosh to get around this OS problem, but is there anything else I could do?
我听说过使用 Hackintosh 来解决这个操作系统问题,但我还能做些什么吗? Thanks to whoever can help me with this.
感谢任何可以帮助我的人。
Native way to create native iOS apps is done using XCode.app, which can only be run on MacOS.创建原生 iOS 应用程序的原生方式是使用 XCode.app 完成的,它只能在 MacOS 上运行。
Hackintosh is a solution to run MacOS on unsupported hardware. Hackintosh 是一种在不受支持的硬件上运行 MacOS 的解决方案。 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 .另一种考虑的方法是在虚拟机中运行它,请参阅这个 StackOverflow 问题。
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).最佳解决方案:考虑到苹果开发者账户每年大约 100 美元,购买一台二手 MacMini 进行开发(如果钱是个问题的话)也不算太贵。
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如果您在 VM 中设置 Ubuntu 并使用https://github.com/TokamakUI/Tokamak ,看起来您可以在没有 Mac 的情况下获得一些经验
From the link above:从上面的链接:
About:
关于:
SwiftUI-compatible framework for building browser apps with WebAssembly and native apps for other platformsSwiftUI 兼容框架,用于构建带有 WebAssembly 的浏览器应用程序和其他平台的原生应用程序
Requirements
要求
......
- Swift 5.6 or later and Ubuntu 18.04/20.04 if you'd like to use Linux.
Swift 5.6 或更高版本以及 Ubuntu 18.04/20.04,如果您想使用 Linux。 Other Linux distributions are currently not supported.
目前不支持其他 Linux 发行版。
There are no ways (other than renting a cloud mac) to develop IOS/MacOS/Apple Watch project using non-MacOS operating system.使用非 MacOS 操作系统开发 IOS/MacOS/Apple Watch 项目没有任何方法(除了租用云 mac)。 You either buy one, rent one, or built a hackintosh
你要么买一个,租一个,要么建一个 hackintosh
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.