*** Edit on June 26th 2012 @ 20:50 ***
– Let me apologise to those who have raised tickets and left comments asking for help. My absence was due to my partner surprising me with a round the world trip, and thus I’ve been unable to get back to all you lovely people. But fear not, im back into the 9 to 5 grind that everyone loves so I will be on hand to help anyone encountering problems. Again I apologise for the rather abrupt absence.
– Removed old edit logs
– Added a support ticket system. If anyone is having any kind of trouble then please open up a ticket at the following website: http://techentry.netne.net/
This will enable me to better serve each individual and keep tracking of what’s going on. Also stops the comments box clogging up with jargon. The ticket system is currently on a trial basis and in alpha stage so please bear with me.
Having recently done this myself, I’ve realised how much of a pain it can be. I found myself chopping and changing between different write ups and towards the end it got rather confusing. So I’ve decided to compile an accurate and true guide as to how one runs Xcode 4 on Windows 7.
First things first. This guide will demonstrate how to set-up and run Xcode 4 on a Windows 7 based PC using the VMWare virtualization environment.
In order to do this, you will need the following files:
1) OS X Lion 10.7.3 VMWare image
2) VMWare Workstation 8
1a) OS X Lion 10.7.3 VMWare image Part 1 (1934 MB)
1b) OS X Lion 10.7.3 VMWare image Part 2 (1934 MB)
1c) OS X Lion 10.7.3 VMWare image Part 3 (100 MB)
2) VMWare Workstation 8
1) VMWare Processor Check for 64-Bit Compatibility
After downloading the files above, install VMWare Workstation 8, following the instructions detailed within the installer.
When prompted for a serial key, refer back to the location you saved the files in Step 1 and locate the “serials.txt” file, open it and use one of the keys listed.
Once VMWare has been installed, open VMWare Workstation and run the inbuilt updater (see below)
This will update the VMWare to the latest version. If you fail to do this step, you will encounter problems later on.
Having completed the above, it is now time to start setting up your virtualised machine.
Locate and run the OS X Lion 10.7.3 VMWare Image you downloaded earlier.
Select where you want the files to be extracted and hit “Ok”.
Navigate to the folder you specified, ensure you have the following files:
Unfortunately, VMWare by default does not support Mac operating systems, but with a few little tweaks we can change that.
Ensure your VMWare Workstation is not running, and if possible end all proccesses related to it.
Once done, locate and run “vmware-vmx-patch.exe, It will be found at the following location:
“location you chose in Step 2”\Mac OS X Lion 10.7.3 VMware Image\ Mac OS X Lion\VMware Unlocker – Hardware Virtulisation Bypasser\vmware-vmx-patch.exe
Having run “vmware-vmx-patch.exe” you will be presented with a popup box similar to the following:
Select the option titled “Apply Patch” located at the bottom of the window, you will then recieve an error as above, simply answer “Yes” and browse to the following file:
32bit – C:\Program Files\VMware\VMware Workstation\vmware-vmx.exe
64bit – C:\Program Files (x86)\VMware\VMware Workstation\x64\vmware-vmx.exe
You will receive a message stating how many files it has effected. Any number greater equal to or greater than “1/7” is expected, if so procceed onto the next step.
Note: If this number is “0/7” then you have selected the wrong file. Please ensure you select the file as detailed above.
Browse to the following folder, this path will be relative to the destination you chose in Step 2.
Mac OS X Lion 10.7.3 VMware Image\VMware Unlocker – Mac OS X Guest\VMware 8.x Series\VMware Workstation Unlocker – Windows
Locate and right click the file titled “install”, then select the option “Run as administrator”
It will run through the nessecary patching procedure, after this is complete, do the same for the file titled “Unlocker”, ensuring once again that you right click and select “Run as administrator”.
Now it’s time to get messy, startup VMWare Workstation and go to File > Open, locate the file titled “Mac OS X Lion.vmx”. This will be located in the following location, relative to where you downloaded your files in Step 2: Mac OS X Lion 10.7.3 VMware Image\Mac OS X Lion\Mac OS X Lion.vmx.
See below for an example:
Click “Open” and VMWare Workstation will import the nessecary settings. After which your screen should now look similar to the following:
Click the option titled “Edit virtual machine settings”
You may or may not have “CD/DVD) (IDE)” listed under the Device column as shown below:
If you do have it listed then please ignore this step and continue onto Step 8. However if you do not have it listed then click the “Add” button displayed at the bottom of the window.
Select “CD/DVD) (IDE)” from the list and click Next, then chose the option “Use ISO image” and once again click Next. You will the be asked to browse for the file, navigate to the following folder relative to where you extracted the files in Step 3.
Mac OS X Lion 10.7.3 VMware Image\VMware Unlocker – Mac OS X Guest\VMware 8.x Series\Tools
Select the file titled “darwin.iso”
Ensure the option “Connect and power on” is ticked and click Finish. Afterwhich you should have “(CD/DVD) (IDE)” listed under Devices. If so please continue to Step 9. If not, repeat the above step.
If you have the “(CD/DVD) (IDE)” listed, then ensure the option “Use ISO image file” is selected and is pointing to the following path:
Mac OS X Lion 10.7.3 VMware Image\VMware Unlocker – Mac OS X Guest\VMware 8.x Series\Tools\darwin.iso
Now choose the tab titled “Options” at the top and ensure “Apple Mac OS X” is listed and selected under “Guest Operating System” and also ensure “Version” is set to Mac OS X 10.7 as shown below:
If all is correct, click Ok to close the window and select “Power on this virtual machine” You will be presented with the following:
Simply click “I copied it” and your virtual machine begin to boot.
Hey presto! You have successfully virtualised OS X Lion. But were not done yet. We could leave it at that, but this guide is informing you how to run Xcode, so without further or do, lets get down to business.
Notably the input is a little slow, lets sort that out. Double click the icon title VMware Tools from your desktop and choose the option “Install VMware Tools”
Follow the installer through, it’s fairly self explanatory. You need not change any settings at all. If asked for a password, leave it blank and click Next.
After the installer has finished, you will be required to reboot. After booting up you should notice the input is more responsive.
Go ahead and open up “App Store” from the Dock and search for “Xcode” You will need an Apple Developer account in order to download Xcode, it’s free and easy, if you havn’t already, register at:
Hit the install button and allow the application time to do it’s business, locate and launch Xcode 4 and walla!
Any problems then please feel free to ask, I’ll ensure to get back to you as quickly as I can.
********** Disclaimer *********
All information and downloads listed above are property of their respective owners. I do not consent to them being malware or virus free. At the time of writing this guide, all downloads were (to my knowledge) clean of any intrusive material and safe.