How to build an IDE environment for IOS development and learning

Source: Internet
Author: User

IOSDevelopment LearningIDEThe environment building tutorial is the content to be introduced in this article. I went around the Forum and found a good article. I would like to share it with my friends. I have to patiently read the entire process, directly go to the topic.

Installation conditions:

Hardware: a PC with a 64-bit dual-core processor supporting virtual technology and 2 GB memory or above.

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:

This is the link of vmware-workstationstandard version .exe. You can download it with thunder:

Http://download.pchome.net/system/sysenhance/detail-4673.html

1. 2. Download Mac OS:

This is Apple's operating system. This article downloads LeoSnow, Mac OS 10.6.2. The Ipad and Iphone sdks require a Mac of 1.6.

This link can be downloaded using Thunder:

Http://www.verycd.com/topics/2778507

Find a seed for installing Mac and download it here (which contains all the boot files, which is very convenient). I have downloaded it and set up the iphone development environment, real availability is found. If you are using this tool, skip the installation of MAC on the VM and check the following environment.

Http://www.rayfile.com/zh-cn/files/6b56760a-1eb5-11e0-81b6-0015c55db73d/

1. 3. Download the iphone SDK:

Xcode_3.2.3_and_iphone_sdk_4 _ final. dmg 2.06 GB

Software Development Kits for iPad and iPhone, including Xcode 3.2.3 integrated development environment, iPhone SDKs support up to 4.0), iPhone OS simulator, performance analysis tools

System Requirements: for Intel-based Mac computers, run the OS seeds for Mac OS x Snow Leopard 10.6.2 or later. I put them on rayfile. You can download them:

Http://www.rayfile.com/zh-cn/files/21e1da05-0e45-11e0-9cd4-0015c55db73d/

. Download Boot Disk:

Darwin. iso or Rebel EFI. iso is used to boot the ISO image file on the CD.

Darwin. iso http://www.verycd.com/topics2818537

Rebel EFI. iso http://www.rayfile.com/zh-cn/files/689c7f1c-0f05-11e0-a0c9-0015c55db73d/

1.5 register a Mac account

Http://developer.apple.com/programs/register/ I cannot register... Khan...

2. Install VMWare7.0

2.1 install virtual machines

Install the VM on Windows XP: VMWare Workstation 7.

This document installs vmware-workstation-full-7.1.3-324285.exe.

There are 14 sets of available registration codes I have collected here. Of course I have not tried them one by one. I chose one of them, which is correct. Try the other.

 
 
  1. CC542-2QF41-M847P-EZPQT-Q3AU6  
  2. UA7MH-0NW80-08EVZ-7XMZT-MGAZA  
  3. YY1E0-A6E51-M892Y-FGPZZ-XC0TF  
  4. ZY7N8-F7Y44-M88RP-VGWXZ-QAAR2  
  5. FC78A-6ZXDN-M88DP-DPN7V-YZHX4  
  6. FA18H-4ZZ15-M805P-6MN5G-ZY0G0  
  7. AF1T0-4PW1M-H84LP-FDQ5C-ZQ0T4  
  8. VV3M0-42Z4M-M80XY-T5PNT-MAUZF  
  9. CG308-08Y10-0892Q-XNMEZ-PKKD0  
  10. GY51K-2MED5-M84MQ-5EPG9-NLUUD  
  11. CC542-2QF41-M847P-EZPQT-Q3AU6  
  12.  
  13. VA34H-DWWD6-08ELZ-3XQ7X-PAK90  
  14. AF1R8-21X17-M8EHQ-QYZXX-WKKW8  
  15. VU59U-D0E0L-48ENQ-G6WGG-PQUZF 

For the corresponding Chinese patch, please download it here:

Http://www.rayfile.com/zh-cn/files/83d4fbf5-0f00-11e0-b6ba-0015c55db73d/

2.2 create a virtual machine

Use File-> New-> Virtual Machine to create a Virtual Machine.

Standard recommendation)-"

Install the operating system later-"

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.

The hardware I set is as follows:

2.4 Virtual Machine Modification

Do not rush to enable the VM after it is created. Disable VMware. Enter the created virtual machine directory and find a file with the extension. vmx,

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, on VMware, choose Options> General Options on the VM,

The OS version is mac OS X Server 10.6.

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

3.1 boot with a Darwin. 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.

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 in Windows XP, to install the iphone development environment, I 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:

Or you can access the network to see if there is any LAN sharing. If there is any, you can simply open it.

5. Install iphoneSDK (IpadSDK ):

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 and you will see a pop-up window:

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.

StartXcodeDevelopment Environment:

Open the Finder. In the "Developer" directory on the disk, there is an Xcode program in the "Applications" directory,

Double-clickXcodeIcon, that is, 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.

Summary:IOSDevelopment LearningIDEI hope this article will be helpful to 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.