Rajesh
Rajesh

Reputation: 10424

How to copy simulator from different Xcode version?

I have 2 XCodes installed on my Mac say Xcode 6.1 and Xcode 5.1. I use Xcode 6.1 iOS for development. For some bugs raised in iOS 7 I am in the need of iOS 7 simulator. Do I download Xcode 7 simulator When I have my iOS 7.1 simulator with my Xcode 5.1, or Would Xcode 6.1 will work When I copy my simulator from 5.1 to 6.1 ?

If that is possible tell me how?

Tnx in advance

Upvotes: 7

Views: 4284

Answers (4)

Waqas Ahmed
Waqas Ahmed

Reputation: 1411

For iOS version greater then 13

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

Copy the simulator sdk you want, and paste it on the same path as above in another XCode version and rename sdk according to version.

Like For example i have version 13.3 i have to copy it to new xcode with version 13.4 Following will be the final path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.3.sdk

Also copy the runtime iOS.simruntime from /Applications/OldXcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles

or

/Applications/OldXcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes

and paste it to the following path

/Users/waqasahmed/Library/Developer/CoreSimulator/Profiles

or

/Users/waqasahmed/Library/Developer/CoreSimulator/Profiles/Runtimes

and rename it according to the version like for version 13.3 it will be iOS 13.3.simruntime

Upvotes: 4

Jeremy Huddleston Sequoia
Jeremy Huddleston Sequoia

Reputation: 23621

It is not possible to use the iOS 6 simulator runtime in new Xcode 7. The iOS 6 simulator runtime is not compatible with the new CoreSimulator architecture.

Upvotes: -2

Igor
Igor

Reputation: 12303

Open path:

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

copy the simulator sdk you want, and paste it on the same path as above in another XCode version.

Upvotes: 2

Thiru
Thiru

Reputation: 1378

You need to install the necessary simulators in each version of Xcode separately. Can use Xcode>Preference> Downloads option.

Upvotes: 1

Related Questions