Install the iPhone development environment in Windows

Source: Internet
Author: User
Tags install mac os x

Many of my friends want to experience or learn how to develop the iPhone, but the iPhone development environment usually needs to be installed in Mac OS on a Mac computer.
This brings extra costs to many friends.
There are already various methods to crack the Internet. Installing the iPhone development environment on a non-Apple Computer brings us good news. However, various versions are messy and may take time, effort, and no effect.
Recently, Apple released a new Development Environment version. I will post the development environment Installation Process on the vmwarevm in Windows XP for you to share.
The iPhone SDK 3.1.2 is successfully installed in Windows XP + vmware workstation 7.0 + Mac OS X snow leopard 10.6!
There are two ways to install Mac OS X on a PC:
Method 1: partition the disk and install Mac OS X;
Method 2: Use Virtual Machine software such as VMware to install Mac OS in existing Windows systems.
Note: Generally, You need to burn the DMG image file of the Apple system to the D9. This step is troublesome.
This article introduces how to use vmwarevm in Windows XP. When installing Mac OS X, you do not need to burn D9 discs, and do not need to convert them to ISO format,
Directly use the DMG image file of Mac OS X and iPhone SDK for installation.
Installation conditions:
Hardware: a PC with a 64-bit dual-core processor supporting virtual technology and 2 GB memory or above.
My laptop: Dell d630 4G memory
Note: To Run Mac OS, you need to support virtual technology (VT) on the computer. During installation, You need to enable VT in BIOS.
Windows XP:
VMware: VMware-workstation-7.0.0-203739 EXE Installation File
Mac OS: mac_ OS _10.6_snow_leopard_10.6 DMG image file
IPhone SDK: iphone_sdk_3.1.2_with_xcode_3.2.1 DMG image file
Darwin. ISO or rebel EFI. ISO boot cd iso Image File
1. Download the installation package
1. Download VMware 7.0:
Here is the link of vmware-workstation-7.0.0-203739standard version .exe. You can download it with thunder:
Https:// Bytes

1. 2. Download Mac OS: 
This is Apple's operating system. This article downloads leosnow, Mac OS 10.6.
This link can be downloaded using Thunder:
Ftp:// OS _10.6_Snow_Leopard_10.6_Retail_maiyadi.dmg

1. 3. Download the iPhone SDK:
"Iphone_sdk_3.1.2_with_xcode_3.2.1 _ snow_leopard _ 10m2003. DMG ",
This link can be downloaded using Thunder:

1. 4. Download the iPhone SDK:
Darwin. ISO or rebel EFI. ISO is used to boot the ISO image file on the CD.

This section is set to hide. You have replied to this section. The following is the hidden content.

2. Install vmware7.0
2.1 install virtual machines
Install the VM on Windows XP: VMware Workstation 7.0.
The VMware-workstation-7.0.0-203739 is installed in this article.

2.2 create a virtual machine
Use File-> New-> Virtual Machine to create a virtual machine.
When selecting an operating system, select other-> FreeBSD 64-bit.

2.3 Virtual Machine Settings
1. Set the CPU to 1-core or 2-core.
2. The recommended memory size is 1024 MB.
3. At least 15 GB for the hard disk.
4. Delete the drive.
You can delete the soft drive in the Customize hardware option, because we will not use the soft drive any more.

2.4 Virtual Machine Modification
Find a file with the. vmx extension under the created virtual machine directory,
Open it with notepad or ue, find the guestos = "freebsd-64" line,
Change the freebsd-64 in quotes to darwin10,
The modified file is guestos = "darwin10". Save the modified file.
Now, in the options-> General options of the virtual machine,
The OS version is Mac OS X Server 10.6.
If it is still displayed as FreeBSD 64-bit, restart the VM VMware.
If the Mac OS X installer cannot be started later, this step may be ignored or the modification is incorrect.

3. Install Mac OS on vmware7.0
In this article, leosnow is installed, that is, Mac OS 10.6.

3.1 boot with a Darwin. ISO or rebel EFI. ISO image.
First load the image file: in the Virtual Machine Settings> hardware just created,
Select a CD/DVD (IDE) device,
Select use ISO image file on the right,
Click Browse to load Darwin. ISO or rebel EFI. ISO.

After the image file is loaded, start the VM.
Run the rebel EFI image to start the instance. After the boot is complete, follow the prompts.
Follow the on-screen prompts to wait for 10 seconds or press the '1' key to select the current disc drive.
We are prompted to insert the Mac OS X DVD.
Now, we can re-open the settings-> hardware,
Find the CD/DVD (IDE) device (you can double-click the disc icon in the lower right corner of the VMware window to quickly open it ,),
Replace the rebel EFI image with the DMG image of the Apple system;

Click Browse and change the file type CD-ROM images (*. ISO) to all files (*. *) to browse the DMG file.
Here is a key point: After selecting the DMG image file,
Check connected in device status (otherwise, the installation interface cannot be entered), and then confirm.
Now, we enter the installation preparation stage of Mac OS X.
Some friends may use the rebel EFI boot to prohibit symbols and cannot install it.
If this problem occurs, replace rebel EFI with the Darwin image and restart the VM.
After the prompt page appears, change the Darwin image to the Apple DMG image on the CD/DVD (IDE) device. Remember to check the "connected" option.
After a while of preparation, the installation process of the Apple system was started;
Some students do not see the hard disk option during the steps for selecting and installing a disk,
Choose utility> disk tool from the menu at the top of the screen ";
"Erase" your virtual hard disk;

After the operation is complete, close the "disk tool" window;

Depending on your computer configuration, you can use the Apple OS after tens of minutes of installation.

The page indicates that your system has been installed and needs to be restarted.

Before restarting, you must remove the Apple DMG image loaded on the CD/DVD (IDE) device during installation,
Change to the Darwin or rebel EFI boot image. Otherwise, you will not be able to boot the installed Mac OS X system.
If one boot fails, try using another boot image.

If you need to install sound cards, graphics cards, and other drivers on the Mac system of VMware, you can find related articles and drivers online,
Or refer to "no! Unlimited! This article will not go into details about installing snow leopard 7.0 on VMWare Workstation 10.6 virtual machines.

4. XP and Mac shared directories

Because I downloaded necessary Mac OS and iPhone SDK files from Windows XP,
Therefore, to install the iPhone development environment, you need to burn the downloaded installation package file to a CD;
If you do not want to burn a CD, you can directly upload these files to the Virtual Machine VMware 7 for installation.
Here I use Windows XP and VMWare shared directory.
In XP, you need to share the iphonesdk directory with the MAC (leosnow) method in vmware7.0:

4.1 In Windows XP, you need to set the directory iphonesdk to share
Step: Set the iphonesdk directory to share in Windows XP:
Select Properties> share, select share this folder on the network, and click OK.

. Write down the IP address of Windows XP

4.3 Access the XP shared directory on the Mac installed in vmware7.0
On the Mac installed in vmware7.0, access the iphonesdk directory, the shared directory in XP.
Step: on Mac, click the finder menu item in the main menu,
Press and hold the command button and K key combination,
Note: cmd + k on a common PC or laptop (non-Mac computer), connection server, SMB: // ip address:
After SMB: //, enter the IP address of Windows XP: and click "Connect". The following prompt is displayed:
Select the iphonesdk directory to be shared and click OK to open the shared directory:

5. Install iphonesdk:
1. Find the installation file of the iPhone SDK on Mac:
"Iphone_sdk_3.1.2_with_xcode_3.2.1 _ snow_leopard _ 10m2003. DMG ",
Double-click the file icon. A pop-up window is displayed:
Click "continue" to display the installer welcome page:
Click "continue", which is the software "License" agreement information:
Click "continue". The "OK" window appears:
Click "agree" to see the Agreement information:
Click "continue". The "OK" window appears:

Click "agree". The installation path selection window is displayed:
After selecting the installation target path, click "continue" to display the "installation type" selection window:
Click "continue". The "OK" window appears:
Click "Install:

Note: before the installation process, You need to exit iTunes first.
On the iTunes icon, right-click and select "exit" from the pop-up menu to close it:
Then, click "continue" to continue the installation:

After the installation is completed, the following message is displayed:
After the installation is complete, click "finish.



6. Start xcode and start development.

Start the xcode development environment:
Open the finder. In the "Developer" directory on the disk, there is an xcode program in the "Applications" directory,
Double-click the xcode icon to start xcode:
Click the "Create a New xcode project" icon to open the project template window:
Select the "View-based application" icon in the iPhone OS Project template and click the "choose" button:
The system prompts you to enter the new project name and the Directory saved by the new project,
After entering the information as prompted, click "save". A new window is displayed, showing the project generated by the wizard and the project directory and files:
Click the "build and run" icon to start compilation;
After compilation is complete, the iPhone simulator is automatically started.
IPhone Mac xcode Apple goodmao

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.