如何使用 Windows 开发机器为 iPhone 开发? [英] How can I develop for iPhone using a Windows development machine?

查看:26
本文介绍了如何使用 Windows 开发机器为 iPhone 开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 Windows 机器上修改 iPhone SDK?是否有适用于 Windows 的 iPhone SDK 版本的计划?

我能想到的唯一其他方法是在 Windows 上运行的 VMWare 服务器上运行 Mac VM 映像,尽管我不太确定这是否合法.

解决方案

当然可以在 Windows 机器上开发,事实上,我的第一个应用程序是专门在我当时拥有的旧 Dell Precision 上开发的 :)

有3条路线;

  1. 在第二个分区/磁盘和双引导上安装 OSx86(又名 iATKOS/Kalyway).
  2. 在 VMWare 下运行 Mac OS X Server(Mac OS X 10.7 (Lion) 及更高版本,阅读下面的更新).
  3. 使用 Delphi XE4 和 macincloud 服务.这是一个商业工具集,但对组件和库的支持正在增加.

第一条路线需要修改(或使用预先修改过的)Leopard 映像,该映像可以安装在普通 PC 上.这并不像您想象的那么难,尽管您的成功/努力比率将取决于您 PC 中的硬件与 Mac 硬件中的硬件的匹配程度 - 例如如果您在 Intel 主板上运行 Core 2 Duo,并使用 NVidia 显卡,那您就在笑.如果您运行的是 AMD 机器或其他没有 SSE3 的机器,则需要更多的参与.

如果您购买(或已经拥有)一个 Leopard 版本,那么这是一个灰色区域,因为 Leopard EULA 规定您只能在Apple Labeled"机器上运行它.正如许多人指出的那样,如果您在 PC 上贴上 Apple 贴纸,您可能会被覆盖.

第二种选择成本更高.Leopard 工作站版本的 EULA 阻止它在仿真下运行,因此,VMWare 不支持此操作.然而,Leopard 服务器可以在仿真下运行并且可以用于桌面目的.然而,Leopard 服务器和 VMWare 很昂贵.

如果您对选项 1) 感兴趣,我建议您从 Insanelymac 开始并阅读 OSx86部分.

我确实认为您应该考虑您将投入的时间是否值得您节省的钱.这是给我的,因为我喜欢修补这类东西,而且我是在早期的 iPhone 测试版期间开始的,也就是在他们的 App Store 可用之前的几个月.

或者,您可以从 eBay 购买低规格的 Mac Mini.运行 SDK 不需要很大的马力,如果您决定停止开发或购买更好的 Mac,您可以随时出售它.

更新:您无法为 OS X 10.6 及更早版本创建 Mac OS X 客户端虚拟机.Apple 不允许对这些客户端操作系统进行虚拟化.从 Mac OS X 10.7 (Lion) 开始,Apple 更改了有关虚拟化的许可协议.来源:VMWare 知识库

Is there any way to tinker with the iPhone SDK on a Windows machine? Are there plans for an iPhone SDK version for Windows?

The only other way I can think of doing this is to run a Mac VM image on a VMWare server running on Windows, although I'm not too sure how legal this is.

解决方案

It's certainly possible to develop on a Windows machine, in fact, my first application was exclusively developed on the old Dell Precision I had at the time :)

There are three routes;

  1. Install OSx86 (aka iATKOS / Kalyway) on a second partition/disk and dual boot.
  2. Run Mac OS X Server under VMWare (Mac OS X 10.7 (Lion) onwards, read the update below).
  3. Use Delphi XE4 and the macincloud service. This is a commercial toolset, but the component and lib support is growing.

The first route requires modifying (or using a pre-modified) image of Leopard that can be installed on a regular PC. This is not as hard as you would think, although your success/effort ratio will depend upon how closely the hardware in your PC matches that in Mac hardware - e.g. if you're running a Core 2 Duo on an Intel Motherboard, with an NVidia graphics card you are laughing. If you're running an AMD machine or something without SSE3 it gets a little more involved.

If you purchase (or already own) a version of Leopard then this is a gray area since the Leopard EULA states you may only run it on an "Apple Labeled" machine. As many point out if you stick an Apple sticker on your PC you're probably covered.

The second option is more costly. The EULA for the workstation version of Leopard prevents it from being run under emulation and as a result, there's no support in VMWare for this. Leopard server, however, CAN be run under emulation and can be used for desktop purposes. Leopard server and VMWare are expensive, however.

If you're interested in option 1) I would suggest starting at Insanelymac and reading the OSx86 sections.

I do think you should consider whether the time you will invest is going to be worth the money you will save though. It was for me because I enjoy tinkering with this type of stuff and I started during the early iPhone betas, months before their App Store became available.

Alternatively, you could pick up a low-spec Mac Mini from eBay. You don't need much horsepower to run the SDK and you can always sell it on later if you decide to stop development or buy a better Mac.

Update: You cannot create a Mac OS X Client virtual machine for OS X 10.6 and earlier. Apple does not allow these Client OSes to be virtualized. With Mac OS X 10.7 (Lion) onwards, Apple has changed its licensing agreement in regards to virtualization. Source: VMWare KnowledgeBase

这篇关于如何使用 Windows 开发机器为 iPhone 开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆