简体   繁体   English

如何在xcode 4.3中开发的xcode 3.1中运行xcode项目?

[英]How to run xcode project in xcode 3.1 developed in xcode 4.3?

I have installed Mac OS X Snow Leopard 10.6.2 on Windows 7 PC with the help of Virtual box. 我已经在Virtual box的帮助下在Windows 7 PC上安装了Mac OS X Snow Leopard 10.6.2。 On that I have installed Xcode 3.1 as it was the compatible version of Xcode on Mac OS X 10.6.2. 在此我安装了Xcode 3.1,因为它是Mac OS X 10.6.2上Xcode的兼容版本。

While running Xcode project in Xcode 3.1 developed in Xcode 4.3 I get lots of errors. 在Xcode 4.3中开发的Xcode 3.1中运行Xcode项目时,出现很多错误。

Is there any way where I can make the codes compatible on xcode 3.1 or at least upgrade xcode 3.1 to xcode 4.3 (nearby) which will be supported by Mac OS X 10.6.2 有什么方法可以使代码在xcode 3.1上兼容,或者至少将xcode 3.1升级到xcode 4.3(附近),Mac OS X 10.6.2将支持该代码。

If you sign in with your developer account at http://developer.apple.com/ios , you'll see that there's a link to "Xcode 4.2 for Snow Leopard". 如果使用您的开发人员帐户http://developer.apple.com/ios登录,您将看到一个指向“ Snow Leopard的Xcode 4.2”的链接。 That's what you want. 那正是你想要的。 Xcode 3.1 is WAY out of date, and does not include any of the current SDKs. Xcode 3.1已过时,并且不包括任何当前的SDK。

Its been a while since you posted this so I hope you or others finds this useful. 自您发布此消息已有一段时间了,所以希望您或其他人发现此功能有用。 I had the same issue with Mac OS X Snow Leopard running on VirtualBox and not being able to run a later version of Xcode than 3.1. 我在VirtualBox上运行Mac OS X Snow Leopard时遇到了相同的问题,但无法运行3.1以上的Xcode版本。 My understanding is that running Mac OS as a VM does not not allow you to run the standard built-in upgrade utility to upgrade the OS. 我的理解是,将Mac OS作为VM运行不允许您运行标准的内置升级实用程序来升级OS。

The resolution that worked for me was documented here How to install Snow Leopard Hackintosh in Virtualbox . 如何在Virtualbox中安装Snow Leopard Hackintosh记录了最适合我的分辨率。

The following method is hacky and has not been thoroughly tested in any way. 以下方法是骇人听闻的,尚未经过任何方式的彻底测试。 Use these instructions at your OWN RISK. 在您自己承担风险时使用这些说明。

First you will upgrade Mac OS Snow Leopard then you will install Xcode 4.2 The steps you'll need are the following: 首先,您将升级Mac OS Snow Leopard,然后将安装Xcode 4.2。所需步骤如下:

  1. Take a snapshot of your Mac OS VM in case something goes arigh 为Mac OS VM拍摄快照,以防万一
  2. Search google for "10.6.7 combo update" (replacing version number with the one you need) 在Google上搜索“ 10.6.7组合更新”(将版本号替换为您需要的版本号)
  3. Download the combo update from apple's official site and run 从苹果官方网站下载组合更新并运行
  4. Complete the install (DO NOT REBOOT) 完成安装(请勿重新启动)
  5. Google "10.6.7 legacy kernel" and download replacing version number with same version number as the combo update (the author of the article recommends finding kernel by nawcom) Google“ 10.6.7旧版内核”,并下载与组合更新相同版本号的替换版本号(本文的作者建议通过nawcom查找内核)
  6. Install legacy kernel 安装旧版内核
  7. Reboot Mac OS and your upgrade should be complete (Note: when I rebooted the spinning wheel that appears during bootup stopped after a min or two. I had to force restart the VM with VirtualBox and it appeared to have updated properly) 重新启动Mac OS,您的升级应该完成(注意:当我重新启动时,一分钟或两分钟后,启动期间出现的纺车停止了。我不得不用VirtualBox强制重新启动VM,并且它似乎已正确更新)
  8. Once in Snow Leopard click on the time/date in upper right hand corner and click "Date & Time Preferences" 进入Snow Leopard后,单击右上角的时间/日期,然后单击“日期和时间首选项”
  9. Uncheck "Set date and time automatically" 取消选中“自动设置日期和时间”
  10. Change the date to 01/01/2012 (this is because of an expired cert check that is checked during the install) 将日期更改为01/01/2012(这是因为在安装过程中检查了过期的证书检查)
  11. Google "xcode_4.2_and_ios_5_sdk_for_snow_leopard.dmg", download, and install it Google“ xcode_4.2_and_ios_5_sdk_for_snow_leopard.dmg”,下载并安装
  12. Once installed you should now have a working copy of Xcode 4.2. 安装后,您现在应该拥有Xcode 4.2的工作副本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM