Installing more simulators for xcode 4.2 without re-downloading everytime
If you are like me, who use more than one machine to develop iOS app and wants to install 4.x and 3.x simulator without re-downloading it on every machine? then I’ve got a solution.
This is how I setup my installation - a 2 step process.
1. Find the .dmg files which is downloaded by XCode 4.2 and download it seperately.
2. Spoof your hosts file of the machine to point the files you have downloaded already.
By inspecting the console.app I was able to figure out the URL of .dmg xcode trying to download.
Eg. The path for 4x simulator is
which resolves into
Now, Open the xcode and select more simulators from the menu.
click install on any of the available option to keep the session validated against your developer acccount.
Once it started to download the file after authentication, just stop it.
Place your downloaded .dmg in
Start apache on port 80 and update
/private/etc/hosts to have
#xcode4.2 legacy simulators dmg proxy 127.0.0.1 adcdownload.apple.com
Switch to xcode and click install again to install the simulator from your local machine without re-downloading.
Installing .dmg individually doesn’t seem to install properly atleast in my case (While installing xcode, I’ve used different directory instead of typical /Developer)