Build iOS development environment on AMD win7 (MAC 10.6.8 + xcode 4.2)

Source: Internet
Author: User

Recently, we need to develop an IOS version of a mobile app. We need to build an iOS development environment. We can apply for a budget at LP to buy a Mac, but we have to use the virtualization method to build the Mac operating system first, then install the xcode + ios sdk. Here, I am also deeply complaining about Apple's closures and strong binding between the iOS development environment and Mac. What's worse is that the version is strictly matched, if it weren't for the task to be a zombie and want to touch apple, let alone nonsense. Here, we will record the entire construction process, so as not to forget it in the future, but also to make it easier for other brothers to take a detour.

The whole process took me two or three days and took a lot of detours in the middle. I tried various DMG and ISO, mainly because I needed a version later than 10.6.7 and my CPU was AMD, these are the prerequisites for me to be in trouble. Here we will not describe the twists and turns here.

1. Tools

  • Virtual Machine: VMWare 8.0 (the first line is virtualbox, but it is stuck in the later upgrade, and it does not support restart, resolution and file sharing well, however, it is faster than VMware)
  • Mac image: snow 10.6 10a432 (http://www.verycd.com/topics/2765539/), higher version I have tried, all failed, only in this version successful, it is estimated that it is related to AMD
  • Upgrade package: 10.6.8 combo (http://support.apple.com/kb/DL1399)
  • Boot Disk: darwin_snow_legacy (http://u.115.com/file/f9c98e98dc), rebel EFI. ISO (http://www.mediafire.com /? Lqkhzbxnjuk) has tried n multi-boot disks, and these two are successful.
  • Xcode: xcode 4.2 + IOS 5.0 (http://www.verycd.com/topics/2887021/) This is the highest version I can find on snow that can run, and Apple does not provide download for lion or earlier versions.
  • DMG to ISO Conversion Tool: any2iso (http://www.7edown.com/soft/down/soft_17835.html)
  • Kernel modifier: Legacy kernel for OS x10.6.8 (http://blog.nawcom.com /? P = 791)

It looks scary, but it is a simplified version after N turns out

2. Installation

It is not difficult to install Mac. I mainly refer to this article:

Http://bbs.weiphone.com/read-htm-tid-1554826.html

Note the following points:

  • Darwin_snow_legacy is required for boot disks.
  • DMG needs to be converted to ISO (this article has not been transferred, but I have not succeeded). It is very easy to convert to ISO, and we will use any2iso mentioned in the tool article.

3. Upgrade

If you only want to experience Mac, you do not need to upgrade it. But if you want to use xcode 4.2, you must upgrade it to 10.6.7 or later. In addition, why not install the High Version directly, as mentioned above, only 10.6.0 can be installed successfully, and then the upgrade steps are performed.

Upgrade procedure:

  1. Set the VMware shared folder and add the upgrade package 10.6.8 combo and kernel modification program legacy kernel for OS x10.6.8 to the shared folder.
  2. In the MAC system, double-click the upgrade package and upgrade it for about a quarter of an hour. After the upgrade, the system will prompt you to restart. Do not restart it.
  3. Decompress legacy kernel and double-click PKG.
  4. At this time, the reboot will fail. After the boot disk is changed to rebel EFI. ISO, it can be started successfully (the first boot will be slow, 5 or 6 minutes, wait patiently)

Upgrade successful. View version: 10.6.8

4. xcode Installation

When your Mac version is 10.6.7 or later, installing xcode is a simple task (but all the previous work is to do this). Put the xcode installation package into a shared folder, double-click the installation button on the Mac (about 20 minutes ). Now that the iOS development environment has been set up, let's celebrate it as soon as possible:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.