IPhone development environment in Windows

Source: Internet
Author: User
Tags install mac os x

IPhone DevelopmentEnvironment inWindowsImplementation in is the content to be introduced in this article. Many friends want to experience or learnIphone Development,Iphone DevelopmentGenerally, the environment 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/iPhone development/Windows environment on non-Apple Computers 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 deploy the new development environment inWindowsInstall the development environment in the vmwarevm under XP and paste it for your sharing.

InWindowsXp + VMware Workstation 7.0 + mac OS X Snow Leopard 10.6 InstallationIPhoneSDK 3.1.2 successful!

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 must support virtual technology (VT) on your computer. During installation, you must start the VT and enable it in the BIOS.

Software:

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://download2.vmware.com/software/wkst/VMware-workstation-7.0.0-203739.exe? 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://snowleoparddown.maiyadi.com/Mac_ OS _10.6_Snow_Leopard_10.6_Retail_maiyadi.dmg

1. 3. Download the iphone SDK:

 
 
  1. “iphone_sdk_3.1.2_with_xcode_3.2.1__snow_leopard__10m2003.dmg” 

This link can be downloaded using 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 on the CD. :

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, or you will not be able to enter the installation page), 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 to Macleosnow 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: In a normal PC or laptop without a mac computer) cmd + K, connect to the 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:

 
 
  1. “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.

Some content is hidden. You need to reply to it before you can see it.

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:

SelectIPhoneIn the OS Project template, click the "View-based Application" icon 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;

Starts automatically after compilation is completed.IphoneSimulator.

IphoneMac xcode Apple goodmao

Summary:IPhone DevelopmentEnvironment inWindowsAnd I hope this article will help you.

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.