xcode 在 Windows 上开发 iPhone 应用程序(使用 Virtualbox 等)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5635915/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:48:30  来源:igfitidea点击:

Develop iPhone applications on Windows (with Virtualbox etc)

iphoneobjective-cxcodeosx-snow-leopard

提问by Mikael ?stberg

This has been asked before, I know, but the answers are a bit dated.

我知道以前有人问这个问题,但答案有点过时了。

I think I've read somewhere that the Snow Leopard EULA has changed and that you now are allowed to install the OS on a Virtual Machine of some sort.

我想我在某处读到过 Snow Leopard EULA 已更改,并且您现在可以在某种虚拟机上安装操作系统。

I know I should buy a Mac and I might do so, but I want to try Objective-C in practice before I do that.

我知道我应该买一台 Mac 并且我可能会这样做,但我想在我这样做之前在实践中尝试使用 Objective-C。

I want to develop an application for iPhone, but if the IDE is as nasty as they say I might skip it altogether. I just want to have a look at it first.

我想为 iPhone 开发一个应用程序,但如果 IDE 像他们所说的那样令人讨厌,我可能会完全跳过它。我只想先看看。

So, is it possible do install what you need to develop iPhone apps on a Windows based machine as host?

那么,是否可以在基于 Windows 的机器上作为主机安装开发 iPhone 应用程序所需的内容?

采纳答案by Chris Kooken

Yes. You can run OSX in a VM. I use MonoTouch and Visual Studio to write my applications in C# with a shared directory between the two. Write code in VS, build and debug on OSX within the simulator. It would also work with Objective-C if that's the path you take. If you're not a Mac Guy I would recommend MonoTouch though, it makes development MUCH faster.

是的。您可以在 VM 中运行 OSX。我使用 MonoTouch 和 Visual Studio 在 C# 中编写我的应用程序,并在两者之间使用共享目录。在 VS 中编写代码,在模拟器中的 OSX 上构建和调试。如果那是您采用的路径,它也可以与 Objective-C 一起使用。如果你不是 Mac Guy,我会推荐 MonoTouch,它使开发速度更快。

回答by Nir Golan

Yes , it is possible to run OSX snow leopard on your PC. I recommend that only for evaluation purposes (if you dont have access to mac development machines, friends/family/etc.).

是的,可以在您的 PC 上运行 OSX snow leopard。我建议仅用于评估目的(如果您无法访问 mac 开发机器、朋友/家人/等)。

Your shopping list would include:

您的购物清单将包括:

  1. a legitcopy of snow leopard.
  2. your choice of virtual machine (in my opinion , virtualbox is great, altough it doesnt support widescreen at the moment).
  3. some guide for combining the above (google is your friend).
  4. you will eventually need some drivers for your pc peripherals (sound card , usb etc).
  1. 一个合法的雪豹的副本。
  2. 您选择的虚拟机(在我看来,virtualbox 很棒,虽然它目前不支持宽屏)。
  3. 结合上述内容的一些指南(谷歌是你的朋友)。
  4. 您最终将需要一些用于您的 PC 外围设备(声卡、USB 等)的驱动程序。

I would start the research from step 3.. Once you're done , you will see that you need a very fast pc to develop, as Waiting for the apps to compile could be frustrating at times.

我将从第 3 步开始研究。完成后,您会发现需要一台非常快的电脑来开发,因为等待应用程序编译有时可能会令人沮丧。

I tried to install OSX on my pc just for evaluationpurposes , getting to know the SDK and the OS before I buy a machine. Actually waiting for the new series of MacBook Airs to buy one..

我试图在我的电脑上安装 OSX 只是为了评估目的,在我购买机器之前了解 SDK 和操作系统。其实在等新系列的MacBook Airs 买一个。。