macos 使用 OS X 和 Vmware 进行 iPhone 开发是否成功?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/866211/
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-10-21 06:09:53  来源:igfitidea点击:

Success with OS X and Vmware for iPhone development?

iphonemacosdevelopment-environmentvmwarevirtualization

提问by b. e. hollenbeck

After trying and failing to get my hands on a temporary Mac to develop an iPhone app for a client, I've started to look into VMware Workstation to virtualize OS X. I was wondering if there are any gotchas that people have found, or if the whole thing is unworkable.

在尝试使用临时 Mac 为客户开发 iPhone 应用程序失败后,我开始研究 VMware Workstation 以虚拟化 OS X。我想知道人们是否发现了任何问题,或者是否整件事是行不通的。

For the record, I have an old stripey-Apple logo I pried off my old Apple IIe and am affixing to the lid of my dev laptop so that I'm complying with the spirit of the OS X EULA.

为了记录,我有一个旧的条纹苹果标志,我从我的旧 Apple IIe 上撬下来,贴在我的开发笔记本电脑的盖子上,这样我就遵守了 OS X EULA 的精神。

采纳答案by OhioDude

Some of my coworkers have tried the VMWare approach with OSX and have, for the most part, failed. I know there are some VMWare images floating around on the internets, but I wouldn't recommend using any of those.

我的一些同事在 OSX 上尝试了 VMWare 方法,但在大多数情况下都失败了。我知道互联网上有一些 VMWare 映像,但我不建议使用其中的任何映像。

Also to Bruce's point, the OSX86 project has made some great progress lately. I was able to get OSX running on an old Dell I have laying around. The thing ran fine as a media server until I made the mistake of downloading a patch, and then the thing died.

同样在布鲁斯看来,OSX86 项目最近取得了很大进展。我能够在我放置的旧戴尔上运行 OSX。这东西作为媒体服务器运行良好,直到我犯了下载补丁的错误,然后它就死了。

As Bruce stated a Mac Mini would be a good investment at $500, or better yet, check out eBay. Pick up something on eBay and at the end of your job you can sell it back on eBay or keep it. If your really tight on your budget you can look for a G4 Mac and do development on that, sans support for the iPhone simulator. I picked up a 2 G4 Macs for $80 a piece and sold one for $120.

正如布鲁斯所说,500 美元的 Mac Mini 将是一项不错的投资,或者更好,请查看 eBay。在 eBay 上捡东西,在你工作结束时,你可以在 eBay 上把它卖回或保留它。如果您的预算非常紧张,您可以寻找 G4 Mac 并在其上进行开发,不支持 iPhone 模拟器。我以每台 80 美元的价格购买了 2 台 G4 Mac,并以 120 美元的价格卖出了一台。

Bottom line is if your thinking of getting into iPhone development make a small investment on a Mini or a used Intel Mac on eBay. If your successful in you development efforts your investment will pay off.

底线是,如果您考虑进入 iPhone 开发,请在 eBay 上对 Mini 或二手英特尔 Mac 进行少量投资。如果您的开发工作取得成功,您的投资将获得回报。

Good luck.

祝你好运。

Edit: Though development on a G4/PPC mac is not supported it is doable. Here is a link outlining how to get it working.

编辑:虽然不支持在 G4/PPC mac 上开发,但它是可行的。这是一个概述如何使其工作的链接。

http://3by9.com/85/

http://3by9.com/85/

回答by Ben Gotow

I have a friend who's successfully installed 10.5.7 on a his Dell laptop using a distro of OSx86. He's got the developer tools and the iPhone simulator working, and he can compile his app. He can't find a USB driver for his hardware, though - so he hasn't been able to install his app on a device.

我有一个朋友使用 OSx86 发行版在他的戴尔笔记本电脑上成功安装了 10.5.7。他让开发者工具和 iPhone 模拟器正常工作,他可以​​编译他的应用程序。不过,他找不到适用于他的硬件的 USB 驱动程序——所以他无法在设备上安装他的应用程序。

Honestly though - I think he's spent about 20 hours getting things setup, finding drivers, etc... We all thought he was crazy until he actually got the dev tools installed. I'd really try hard to get my hands on a Mac Mini before going through all the hassle.

老实说 - 我认为他花了大约 20 个小时来设置东西,寻找驱动程序等......我们都认为他疯了,直到他真正安装了开发工具。在解决所有麻烦之前,我真的会努力尝试使用 Mac Mini。

But the Apple logo transplant... pure genius.

但是苹果标志移植……纯属天才。

回答by Bruce McLeod

Prepare for an onslaught of replies on the EULA.

为 EULA 的大量回复做好准备。

Technically your best resource would be the OSx86 website which is here http://wiki.osx86project.org/.

从技术上讲,您最好的资源是 OSx86 网站,它位于http://wiki.osx86project.org/

And their page on virtualisation is here http://wiki.osx86project.org/wiki/index.php/Virtualization

他们关于虚拟化的页面在这里 http://wiki.osx86project.org/wiki/index.php/Virtualization

Importantly though, developing for the Mac and iPhone are very similar, and if you are serious about doing good developmenet for your clients you should probably invest in a mac mini at the least, which is less than $500US more than just buying the OS by itself.

重要的是,Mac 和 iPhone 的开发非常相似,如果你认真地为你的客户做良好的开发,你可能至少应该投资一个 mac mini,这比仅仅通过购买操作系统多不到 500 美元本身。

回答by Ramin

That's the old rainbow logo from the IIe, right? Die-hards have the white Apple sticker that comes with every real Mac. Realdie-hards have the white Apple sticker they surreptitiously peeled off their nephew's toy truck.

那是IIe的旧彩虹标志,对吧?顽固派拥有每台真正的 Mac 随附的白色 Apple 贴纸。真正的顽固分子有他们偷偷从他们侄子的玩具卡车上撕下的白色苹果贴纸。

Cheapest option is probably to partition your hard-drive and install hackintosh:

最便宜的选择可能是对硬盘进行分区并安装 hackintosh:

http://www.wired.com/gadgetlab/2009/05/eight-months-with-a-hackintosh-netbook-conclusion-fantastic/

http://www.wired.com/gadgetlab/2009/05/eight-months-with-a-hackintosh-netbook-conclusion-fantastic/

But if every time you build your app in XCode it takes long enough to catch a sitcom on TV, don't come crying here :-)

但是,如果每次在 XCode 中构建应用程序都需要足够长的时间才能在电视上观看情景喜剧,请不要在这里哭泣:-)

回答by Bayard Randel

Obvious legalities aside, in my experience OS X performs very poorly in a VM. Installing OS X natively on your PC is possible if you have patience, and happen to have compatible hardware. I can't honestly recommend this approach however, unless you're a glutton for punishment, or would like to hearken back to those golden days when installing Linux with support for all your hardware was actually a small triumph in itself.

撇开明显的合法性不谈,根据我的经验,OS X 在 VM 中的性能非常差。如果您有耐心并且碰巧有兼容的硬件,则可以在您的 PC 上本地安装 OS X。然而,我不能诚实地推荐这种方法,除非你是一个贪婪的惩罚者,或者想回到那些安装支持所有硬件的 Linux 的黄金时代,这本身就是一个小小的胜利。

As others have mentioned, if you are serious about iPhone development, you're going to save yourself a lot of hassle by getting yourself a secondhand or refurbished Mac mini.

正如其他人所提到的,如果您对 iPhone 开发很认真,那么您可以通过购买二手或翻新的 Mac mini 为自己省去很多麻烦。