简体   繁体   English

如何在 Windows 上使用 SwiftUI 制作 iOS 应用程序?

[英]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 platforms SwiftUI 兼容框架,用于构建带有 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.

相关问题 如何制作适用于带Phonegap的桌面窗口和IOS的应用程序? - How can i make an app that will work for desktop windows and IOS with phonegap? 我如何使用PhoneGap在Windows操作系统中创建ios应用程序? - How i can use PhoneGap to create ios app in windows os? 我可以在 windows 上的 flutter 上仅在 2 个 IOS 设备上制作应用程序吗? - Can I make an app on just 2 IOS devices with flutter on windows? 如何在iOS应用中使用LuaSocket? - How can I use LuaSocket in iOS app? 如何从 SwiftUI 中的文件应用程序中获取 pdf 文件并将其导入到 iOS 的 iPhone 应用程序中 - How can I grab a pdf file from the files app in SwiftUI and import it into my app on an iPhone with iOS 如何在 SwiftUI 上使用 CAEmitterLayer 制作 animation? - How can I make animation with CAEmitterLayer on SwiftUI? 如何使 SwiftUI 中的背景半透明? - How can I make a background in SwiftUI translucent? 如何在 SwiftUI 中使 TextAlignment 可编码? - How can I make TextAlignment Codable in SwiftUI? 如何在基于 SwiftUI 的 iOS 应用程序中呈现连续视图? - How can I present successive views in a SwiftUI-based iOS app? 如何让我的 SwiftUI 应用程序显示在 IOS 照片共享表上? - How can I get my SwiftUI app to show on the IOS Photos Share Sheet?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM