Install IPHONE/IPAD development environment on Windows platform

Source: Internet
Author: User
Tags continue install mac os x

Many friends want to experience or learn about iphone development, but the iphone development environment generally needs to be installed in Mac OS under Mac computer.

This brings an extra cost to many friends.

There are already a variety of methods on the Internet to install the iphone development environment on non-Apple computers, which brings us good news. But the various versions are messy and can be time-consuming and laborious.

Recently, Apple has launched a new development environment version. I posted a new development environment in a VMware virtual machine under Windows XP and let you share it.

This article installs the iphone SDK in Windows Xp + VMware Workstation 7.0 + MAC OS X Snow Leopard 10.6 Environment 3.1.2 Success!

————————————–

There are two ways to install a Mac OS x system on a PC:

Method One: partition on the hard disk, install Mac OS X specially;

Method Two: In an existing Windows system, use virtual machine software such as VMware to install the Mac OS.

Note: The general need to burn the Apple system's DMG CD image files to the D9 disc, this step is more cumbersome.

This article describes the use of VMware virtual machines in Windows XP, the installation of Mac OS X, no need to burn D9 discs, no need to convert to ISO format,

A way to install directly using the DMG image files for Mac OS x and iphone SDK.

————————————–

Installation conditions:

Hardware: A 64-bit dual-core processor with support for virtual technology and a PC with more than 2GB of memory.

I use notebook: DELL D630 4G Memory

Note: Running the Mac OS requires a computer to support virtual technology (VT), which needs to be launched in the BIOS when it is installed.

Software:

Windows XP:

vmware:vmware-workstation-7.0.0-203739 exe installation files

MAC os:mac_os_10.6_snow_leopard_10.6 DMG CD image file

IPhone sdk:iphone_sdk_3.1.2_with_xcode_3.2.1 DMG CD image file

Darwin.iso or rebel Efi.iso bootable CD ISO image file

————————————–

1. Download installation package

1.1. Download VMware 7.0:

Here is the vmware-workstation-7.0.0-203739 Standard Edition. EXE link, you can download with thunder:

Https://download2.vmware.com/software/wkst/VMware-workstation-7.0.0-203739.exe? Hashkey=1338595dbfed5502d44e5506520145fe&ext=.exe&authkey=1258895780_40bddf08d507e11e4cb51f2f729cced0 &ext=.exe

1.2. Download Mac OS:

This is Apple's operating system. This article downloads Leosnow, Mac OS 10.6.

This link can be downloaded with thunder:

Ftp://snowleoparddown.maiyadi.com/Mac_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 with thunder:

Http://ipsw.info/iphone_sdk_3.1.2_with_xcode_3.2.1__snow_leopard__10m2003.dmg

1.4. Download the iphone SDK:

Darwin.iso or Rebel Efi.iso is used to boot the ISO image file for the CD.

6. Start Xcode Start development

To start the Xcode development environment:

Open the Finder, and in the "Applications" directory in the "Developer" directory on disk, there are Xcode programs,

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 on the "Choose" button:

Prompts for a new item name and a directory to save the new item.

When prompted to enter, click the "Save" button, a new window appears, showing the wizard-generated project and the project directory and files:

Click on the icon "Build and Run", then start compiling;

When the compilation completes, the iphone emulator is started automatically.

iphone mac Xcode Apple Goodmao

2. Install Virtual machine VMWare7.0

2.1 Installing Virtual machines

Install virtual machines on Windows XP: VMWare Workstation 7.0.

This article is installed with vmware-workstation-7.0.0-203739.

2.2 Creating a virtual machine

Create a virtual machine using file->new->virtual machine.

When selecting an operating system, select Other->freebsd 64-bit.

2.3 Virtual machine settings

1.CPU is set to 1 cores, 2 cores are OK.

2. The memory recommendation is set to: 1024MB.

3. Hard disk is assigned at least 15GB.

4. Remove the floppy drive.

You can remove the floppy drive in the Customize hardware option because we will not use the floppy drive again.

2.4 Virtual Machine Modification

In the newly created virtual machine directory, find a file with the. vmx extension.

Open with Notepad or UE to find Guestos = "Freebsd-64″ row,

Change the freebsd-64 in quotation marks to Darwin10,

After the modification is: Guestos = "Darwin10″, save the modified file."

Now, in the options->general option of the virtual machine,

You can see that the operating system version is displayed as: MAC OS X Server 10.6.

If it is still displayed as FreeBSD 64-bit, you will need to restart virtual machine VMware.

If you cannot start Mac OS x Setup later, you may have missed this step or changed the error.

————————————–

3. Install Mac OS on virtual machine VMWare7.0

This article installs the Leosnow that is: Mac OS 10.6.

3.1 Boot with darwin.iso or rebel Efi.iso mirrors.

To load the mirrored file first: In the virtual machine settings->hardware that you just created,

Select the CD/DVD (IDE) device,

Select Use ISO image file on the right,

Point browse load Darwin.iso or Rebel Efi.iso.

When the mirrored file is loaded, the virtual machine is now started.

Start with the rebel EFI Mirror, and follow the prompts when the boot is complete.

Follow the on-screen prompts to wait 10 seconds or press ' 1′ ' to select the current disc drive.

Here you are prompted to insert your Mac OS x DVD disc.

Now we open the settings->hardware of this virtual machine again,

Locate the CD/DVD (IDE) device (you can double-click the CD icon in the lower right corner of the VMware window to quickly open it, as shown in figure:)

Replace the rebel EFI image with the DMG image of the apple system;

Click to browse to the DMG file by changing the file type CD-ROM images (*.iso) to all Files (*.*).

Here's a key place: After you select the DMG image file,

Device the status of the connected before the check (otherwise can not enter the installation interface), and then determine.

At this point, we are in the process of preparing for the setup of Mac OS X.

Some friends using the rebel EFI boot may appear banned symbols and cannot be installed.

This problem can be encountered by replacing the rebel EFI with the Darwin Mirror and restarting the virtual machine.

After the prompt interface appears, change the Darwin image to an Apple DMG image in the CD/DVD (IDE) device, and also remember to tick the "Connected" option.

After a period of preparation to enter the Apple system installation process;

In particular, some students do not see the hard drive option when they go to the steps to select the installation disk.

Find "Utility"-> "Disk Utility" in the menu above the screen;

Perform a "erase" operation on your virtual hard disk;

When the operation is complete, close the Disk utility window OK;

Depending on the configuration of your computer, a few 10 minutes of installation, you can use the Apple operating system.

See the image below the interface, indicating that your system has been installed, need to reboot.

Before restarting you should pay special attention to removing the Apple DMG image that was loaded on the CD/DVD (IDE) device at installation.

Replace the Darwin or rebel EFI boot mirror, or you will not be able to successfully boot the installed MAC OS x system.

If you use a boot failure, you can try to use a different boot image.

There are also need to install the MAC system in VMware Driver's card, graphics and other drivers of friends, you can find relevant articles and drives online,

or reference "Extra!" VMware Workstation 7.0 Virtual machine installation Snow Leopard Snow Leopard 10.6 Article, this article will not repeat.

————————————–

4.XP and Mac Shared directories

Because I am the installation prerequisites such as Mac OS and iphone SDK downloaded in Windows XP,

So, to install the iphone development environment, you need to burn the downloaded installation package files into a CD-ROM;

If you do not want to burn the disc, you can upload these files directly to the virtual machine VMware 7, you can install.

I'm here with the Windows XP and VMware shared directory approach.

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 be shared

Step: Set the IPHONESDK directory to be shared in Windows XP:

Click the right mouse button,

Select Properties-> Share, select "Share this folder on the network", click OK button.

4.2. Write down the IP address of Windows XP

4.3 Access to XP shared directories in Mac installed in VMWare7.0

Access the shared directory IPHONESDK directory in XP in the Mac installed in VMWare7.0.

Step: In the Mac, click on the Main Menu Finder menu item,

Press and hold the command button and the K key combination key,

Note: On a regular PC or notebook (non-Mac computer) Cmd+k, connect to the server, SMB://IP address:

Enter the IP address of Windows XP after smb://: 192.168.6.222 Click the "Connect" button to see the following prompts:

Select the directory we need to share iphonesdk and click the "OK" button to confirm that the shared directory can be opened:

5. Install IPHONESDK:

1. Locate the IPHONESDK installation file in the Mac:

"IPHONE_SDK_3.1.2_WITH_XCODE_3.2.1__SNOW_LEOPARD__10M2003.DMG",

Double-click the file icon and you will see a pop-up window:

Click on the "Continue" button to appear in the Installer Welcome interface:

Click on the "Continue" button, is the Software "license" agreement information:

Click on the "Continue" button and the "Confirm" window appears:

Click the "Agree" button to receive agreement information:

Click on the "Continue" button and the "Confirm" window appears:

Click the "Agree" button, the Installation Path Selection window appears:

After selecting the installation target path, click on the "Continue" button and the "Install Type" Selection window appears:

Click on the "Continue" button and the "Confirm" window appears:

Click the "Install" button:

Note: Before the installation process, you need to exit itunes first.

On the itunes icon, click the right mouse button and select "Exit" from the pop-up menu to close:

After you click the "Continue" button, the installation continues:

Tips for Installing the end:

When the installation is complete, click the "Finish" button.

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.