copy simulator from one mac to another mac osx

I'm the user with the less internet speed, one of my friend downloaded iPhone Simulator in his Xcode 4.5 to test the code in iOS 5.1, 5.0, 4.3 os too, now if I want those simulators in my mac, is there any way from there I can copy those simulators and simply paste it somewhere in my XCode.app folder that I will get those simulators in my Xcode too? --- I'm taking this as an advantage for not downloading the same thing again and save the time!

I came to know that, we can find the iPhone simulators here for XCode 4.3 or higher versions,

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/

Have anyone tried this before? or some other way to get this other than downloading.


Solution 1:

As @patrix told me to tried on my own self, I've do so, I got the simulator from here,

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

and copy the simulator sdk you want to add in your xcode, and paste it on the same path as above in your mac. That's it.

Solution 2:

It's changed in xcode 6.3. The new location is MacintoshHDD<Drive of your mac>/Library/Developer/CoreSimulator/Profiles/Runtimes/... You need to copy this and paste if you want to copy once downloaded simulators to other Mac.

Solution 3:

The runtime that ships with Xcode is currently (as of Xcode 8.x) co-located with the corresponding SDK <xcode bunde>/Contents/Developer/Platforms/<simulator>.platform/Developer/SDKs. Do not try to copy this, it is specific to the version of Xcode you have installed. This may change in the future to separate the runtime from the SDK so it is closer to the downloadable runtimes.

Downloadable runtimes are written to /Library/Developer/CoreSimulator/Profiles/Runtimes. These can be copied between computers just fine.