Hardware environment, Intel Core2 [email protected]
Software Environment: winxp sp3, vmware workstation 7.0
The above is a horseback daily use dev pc:), we first see the machine's bios, see if you open the Intel Virtualization Technology option, confirm your options, choose enabled.
Downloaded from the Internet: OSX.10.6.RETAiL.DVD.iSO.rar extract out of Mac OS X Install DVD.dmg file, and converted to iso format using UltraISO.
New vmware virtual machine, select the Guest OS type selection FreeBSD 64Bit, a single cpu, memory, 1G, select SCSI type hard disk 24G, is set up, open the virtual machine directory inside the *. vmx file to guestOS changed configuration items "darwin10"
Before the start of a darwin.iso downloaded from the Internet, and configure the virtual machine using the CD-ROM CD-ROM to start the virtual machine later, will enter into a console interface, and print some err message, Ctrl + C look, console where prompted to insert the osx CD-ROM, this time to configure the virtual machine CD-ROM to use ultraiso convert a good iso file, and note that vm's Connected CD-ROM drive configuration items to be checked.
ok, everything goes smoothly, start to guide osx installation, the installation process will be asked to select the hard disk, from the top of the menu screen, select "Utilities" - "Disk Utility on the hard disk to" erase "operation, and then return to install the interface you can select the current machine hard drive, all the way next go on until the installation is complete restart.
Installation finished, reboot, you need the virtual machine CD-ROM drive is configured to use darwin.iso, at this time if everything goes normal, it will enter the "snow leopard" of the interface:)
Click here to horseback would like to adjust the resolution, click on the screen below the Finder (the equivalent of win on the file browser), the / Library / Preferences / SystemConfiguration / com.apple.Boot.plist this file onto the desktop one, and then modify the contents of the file by adding
<key> Graphics Mode </ key>
<string> 1280x800x32 </ string>
After saving, again and again to the / Library / Preferences / SystemConfiguration / folder, overwrite the original file, will be asked to enter a password after restart the virtual machine inside the "Snow Leopard" screen settings should be in line with your request:)
Then from the Apple Web site to register, and then download iphone_sdk_3.1.3, download is a dmg file directly to configure the virtual machine CD-ROM to use this dmg file, and then osx disc content window will pop up, double-click the installer, all the way next down, SDK installed :)
Open the Finder, on the hard disk with the directory, there should be a Developer subdirectory, this is a time to install the SDK the default path, and then into the Applications directory, double-click xcode.app, wait a moment, xcode interface should appear.
Then click New Project, to create an iphone "OpenGL ES Application", fill in the project name "HelloIPhone", select Save location
Click to xcode the toolbar in the "Build & Run", under normal conditions iphone emulator will start, the screen displays: