简体   繁体   中英

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. 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.

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).

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM