有没有办法在Windows机器上修改iPhone SDK ?有针对Windows的iPhone SDK版本的计划吗?

我能想到的另一种方法是在运行Windows的VMWare服务器上运行Mac虚拟机映像,尽管我不太确定这是否合法。


当前回答

SDK只在OS X上可用,迫使你使用mac电脑。如果你不想购买mac电脑,你可以在你的windows盒子上的虚拟机上运行OS X,或者你可以在你的PC上安装OS X。

根据我的经验,虚拟机解决方案非常慢(在具有2G内存的core2 duo笔记本电脑上)。如果你想试试,可以搜索torrent。这可能不值得。

另一种选择是在你的电脑上安装OS X,通常被称为hackintosh。hackintosh工作得很好——我的朋友刚刚卖掉了他的mac,因为他的戴尔四核hackintosh实际上比苹果硬件快得多(价格大约是苹果硬件的1/3)。

当然,这两种选择都可能与某些许可计划相抵触,所以请自行承担风险。

其他回答

我用颤振。我在Windows机器上开发,在Android模拟器上测试。当我准备好在iOS上测试时,我在macOS上运行代码。根据我的经验,Flutter应用程序在Android和iOS上运行完全相同。如果你没有Mac,你可以下载VirtualBox并在上面安装macOS。在VirtualBox上,macOS的运行和真正的Mac完全一样,你可以在上面构建应用程序。

Oracle VirtualBox允许用户在虚拟机中安装Mac OS X。如果你觉得舒服,你可以用这种方式来使用Xcode。这是合法的,如果你“双引导”你的mac到windows,然后在windows(或linux)中安装VirtualBox。

其他可能性是交叉编译器,如Appcelerator Titanium (HTML, CSS和JavaScript)或MonoTouch (. net)。

如果你可以通过ssh访问Mac,那么你可以使用VNC(比如Vine VNC,它允许一次使用多种功能-瘦瘦客户端)来控制XCode。

如果你想从笔记本电脑访问Mac Mini,或者你的另一半占用了你的MacBook,这可能会很有用。

只要做一个网页应用。 iOS网页应用包括:

Reliable. The amount of time it takes to make an update is far shorter than with XCode. Fast. JavaScript on iOS is, by nature, far faster than native apps. Free. You never have to pay Apple a cent, as Apple doesn't have any control over you. Safer. If a crash occurs with a native app, it can take down even the newest iOS devices for hours or even days, until the user can fix them. If a web app crashes, the user just has to close and reopen it, worst case scenario. Offline. You can easily create a service worker to handle your app. Secure. Because you do not have access to native APIs, a security breach will be significantly less dangerous. Easy to program. A basic iOS web app can be programmed from the Safari URL bar on an iPhone. Literally. I've done it myself.

看看这个:

在视图

它是一个尝试将用多种源语言编写的程序交叉编译为多种目标语言的项目。最初的测试用例之一是用Java编写程序并在iPhone上运行。在网站上观看视频是值得的。

话虽如此,我还没试过。该项目似乎还处于测试阶段,在SourceForge网站上并没有太多活动。