Windows iPhone Vmware

Source: Internet
Author: User

The iPhone SDK 3.1.2 is successfully installed in Windows XP + vmware workstation 7.0 + Mac OS X snow leopard 10.6!

--------------------------------------

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.

Software:

Windows XP
VMware Workstation 7.0.1 for Windows

Mac_ OS _10.6_snow_leopard_10.6: DMG image file
: Ed2k: // | file | [Apple operating system.-. Snow Leopard. 10.6]. snowleopard_10a432_userdvd.dmg | 6586892984 | cfbd9bf61eea3d358e19108b96435133 | H = Shanghai |/

Mac_ OS _update_10.6.3: Mac OS update package download

IPhone SDK: iphone_sdk_3.1.2_with_xcode_3.2.1 download

Rebel EFI. ISO: boot disc ISO Image File Download

Vmsvga2: modify resolution download

--------------------------------------
1. Download the installation package
Omitted

--------------------------------------

 

2. Install vmware7.0
2.1 install Vmware

Omitted

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 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 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:

Right-click,

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: 192.168.6.222 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.

Reprinted Source: http://mytherf.iteye.com/blog/660357

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.