Install and use MacOS in the iPhone Development Environment

Source: Internet
Author: User

IPhoneDevelopment Environment experienceMacOSInstallXCodeAnd usage is the content of this article, mainly for InstallationXCodeAnd usage. Let's take a look at the content.

I. Installation Requirements

IphoneDevelopment EnvironmentXcode+IphoneThe SDK has extremely abnormal version requirements.

There are roughly the following mappings:

Xcode 3.1.X can only be installed on Mac OS 10.5.X.

XCdoe 3.2.X can only be installed on Mac OS 10.6.X.
 
If you just try MacOS, you can use a virtual machine to install the MacOS for x86, which is a hacker called "black apple". If it is in the 10.5.X series, you can install WINXP on most Intel/AMD machines.

For the 10.6.x series, the CPU that supports intel Virtual Technology (unconfirmed) is required ). In Intel Core 2 mobile processor series, P7350/7450, T5200/5250/5270/5300/5450/5470, and T6400/6570 do not support virtualization technology. Unfortunately, 70% of dual-core CPUs do not support this technology.
 
Another most convenient option is to use a virtual machine file that has been installed by others, such as the Mac OS 10.5.5 created by using MeMac.cn. Unzip the package and use VMWare 6.5 or later. I currently use this solution.

It can install Xcode 3.1.4 + iphone sdk 3.1.2. Unfortunately, only the latest XCode 3.2.2 + iphone SDK 4 has been downloaded from Apple's official website. If you want to develop an iphone, you can only find another method to download the version, or use Mac OS 10.6.x for development.
 
Ii. upgrade Mac OS 10.5.5 to 10.5.7

After several days, I decided to install Xcode 3.1.4 with Mac OS 10.5.5.

The next problem is that xcode 3.1.4 must be installed on Mac OS 10.5.7 before the iphone SDK can be installed. Otherwise, only Xcode can be installed.
 
There are two ways to solve this problem,

First, you can download the iDeneb. Combo. Upgrade. KIT.1057.dmg update package. It can be changed to 10.5.7. This method is to download the m upgrade package. It is hard to find a place to download this package. For more information, see.
Http://www.flyblog.info/catprogramming/386.html
 
So I gave up.
 
The second is to forcibly modify the configuration file of Mac OS, and change 10.5.5 to 10.5.7 to cheat the Xcode installation program.
 
You must use the root user to modify the online reminder. At this time, I encountered another problem. I could not try the root password, No matter www.memac.cn or memac.cn. This cannot be changed.
 
However, it was found that there was a work und: Use the management account MeMac.cn to log on to the Virtual Machine with Putty, and then use the following command

Sudo-s to change the current user to have the root permission. You can use memac.cn to change the password.

 
 
  1. login as: MeMac.cn  
  2. Using keyboard-interactive authentication.  
  3. Password:  
  4. Last login: Wed Dec 15 18:18:48 2010 from 192.168.2.120  
  5. MeMac-cns-VMware-Virtual-Platform:~ MeMac.cn$ sudo -s  
  6.  
  7. WARNING: Improper use of the sudo command could lead to data loss  
  8. or the deletion of important system files. Please double-check your  
  9. typing when using sudo. Type "man sudo" for more information.  
  10.  
  11. To proceed, enter your password, or type Ctrl-C to abort.  
  12.  
  13. Password:  
  14. bash-3.2# vi /System/Library/CoreServices/SystemVersion.plist  
  15. bash-3.2#        

Use the vi tool to modify the version number of SystemVersion. plist, and change 10.5.5 In the/System/Library/CoreServices/SystemVersion. plist file to 10.5.7.

 
 
  1.   <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
  2. <plist version="1.0"> 
  3. <dict> 
  4.         <key>ProductBuildVersion</key> 
  5.         <string>9F33</string> 
  6.         <key>ProductCopyright</key> 
  7.         <string>1983-2008 Apple Inc.</string> 
  8.         <key>ProductName</key> 
  9.         <string>Mac OS X</string> 
  10.         <key>ProductUserVisibleVersion</key> 
  11.         <string>10.5.5</string> 
  12.         <key>ProductVersion</key> 
  13.         <string>10.5.5</string> 
  14. </dict> 
  15. </plist>  

After modification, restart the machine and install 3.1.4, the iphone SDK can be installed!

Another method is to use the Apple offline upgrade package. Not verified

Http://blog.sina.com.cn/s/blog_55f899fb0100d8ok.html
 
3. Install XCode
 
I used iphone_sdk_3.1.3_with_xcode_3.1.4 _ leopard _ 9m2809a. dmg to install it on a virtual machine.

First, set this *. dmg as the VM's CD. After the connection, the CD drive letter will automatically appear on the Mac OS desktop, and then run the iphoneSDK.

After the installation is successful, you can find XCODE in finder/developer/Applications. You can drag it to the desktop or main panel

At the first startup, A Welecom window will be displayed. If you do not want to display it next time, remove Show at launch.

Note that after Xcode is started, its main menu will be directly mounted to the toolbar on the top. I thought it was not started.

You can create a project for the New project in the File menu. At this point, Xcode is fully installed.

Iv. shortcuts

MacOSThe standard desktop shortcut is to drag the MOUSE to the following DashBar. But drag the MOUSE directly to the desktop is a mobile file! After moving, executeXCODEAll icons are promptedXCODEIf the file is not properly closed, it fails to be restored, but the file is actually moved. It took me three hours to reload it.XcodeThis is why

Summary:IPhoneDevelopment Environment experienceMacOSInstallXCodeAnd the use of content, 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.