Installation of the iPhone development environment and compilation of HelloWorld

Source: Internet
Author: User

IPhone Development Notes (1)

--- Install the iPhone Development Environment

 

Post reposted self blog: http://luzj.me/iphone-setup-and-helloworld.html


Today we will talk about how to install the iPhone development environment. Currently, there is no perfect iPhone development platform on Windows. We can only use a virtual machine to install the Mac system and then develop the iPhone on it, there are a lot of articles about Mac installation methods on the network. The following installation process is a lot of pictures from the network.

The Mac OS 10.6.3 is used, and the development environment is xcode_3.2.4_and_ios_sdk_4.1 downloaded from the Apple website.

1. Install Mac

Start VMWare Workstation 7.1. Use File-> New-> Virtual Machine to create a Virtual Machine. Select Other-> FreeBSD 64-bit when selecting the operating system.

 

 

After creating a virtual machine, you need to find a file with the extension. vmx file, open with notepad, find guestOS = "freebsd-64" line, change the freebsd-64 In the quotes to darwin10, change to guestOS = "darwin10", save the modified file.

In this step, the operating system version is displayed as mac OS X Server 10.6 under Options-> General Options of the virtual machine, as shown in. Next we will start to install. The first step of installation is to use the Darwin. iso image for boot. After the boot is complete, insert the mac OS X DVD.

At this point, we enter the installation preparation stage of mac OS X:

 

Choose utility> disk tool from the menu at the top of the screen, as shown in:

 

Execute the "erase" operation on your virtual hard disk ,:

 

After the operation is complete, close the "disk tool" window and you will be able to install it. Depending on the configuration of your computer, you will be able to use the Apple OS for dozens of minutes.

 

 

 

The page indicates that your system has been installed and needs to be restarted. Remove the loaded Apple image and replace it with the Darwin boot image before restarting.

 

 

After the restart, you will see the welcome page and enter the system with simple settings.

 

Enable the optical drive and install VMware Tool

 

After installation, restart and set a shared disk for the VM.

 

After setting, you can access the host file on Mac.

 

2. Install the iPhone SDK

Find the downloaded xcode_3.2.4_and_ios_sdk_4.1.dmg file in the folder shared by the host on Mac. Double-click it and the system will load it.

 

 

A new virtual optical drive will appear on the desktop. Open it and double-click the mpkg file to go to the installation page.

 

 

The installation process is simple. After installation, open the installation environment.

 

Click Create a new Xcode project, select Create Window-based Application, and click Choose. Enter the project name to enter the development environment.

 

Find MainWindow. xib in the Rescources directory on the left of the development environment, double-click it, open the form Editor, add a label, write a few words on it, save it, and exit.

 

Click Build and Run to start the simulator.

 

 

This article is a learning summary. If you have any shortcomings, please point out. Thank you!

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.