How to copy simulator from different Xcode version? - ios

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

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

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.

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

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.

Related

This iPhone is running iOS 12.0 (16A366), which may not be supported by this version of Xcode

I am using Xcode (Version 9.0 (9A235)), and when I tried to run my app on my iPhone, I am getting this error.
This iPhone is running iOS 12.0 (16A366), which may not be supported by this version of Xcode.
I can't update my Xcode due to an incompatible version of macOS.
Any other solution?
You need to use xcode 10 for ios version 12.0.
Download files based in your iPhone Model IN HERE
1 - Open directory:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
3 - Create new folder "12.0 (16A366)" depends on what exactly are you missing
4 - Paste the OTA Files Uncompressed
6 - Restart Xcode
iOS 12 is only supported by the beta of Xcode 10 or higher.
If you want to use your iPhone 8 with this iOS version (NOT RECOMMENDED) with your Xcode 9.4 you can try to download the last beta of Xcode 10 and after connecting the iPhone to the mac go to this folder:
/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
You can see the iOS version folder of the iPhone, copy and past it to the same location in your Xcode 9.4 folder.
After this you should be able to deploy to your iPhone 8.
Download (16A366) file from this link and paste at /Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Link to Download file (16A366)

This iPhone 6 is running iOS 11.3.1 (15E302), which may not be supported by this version of Xcode

I'm using Xcode 9.2 with Sierra 10.3.3 . And my iPhone 6 is with 11.3.1 (15E302). I'm unable to use my iPhone 6 for the test purpose of my IOS apps. Because, the Xcode says, Could not locate device support files. This iPhone 6 is running iOS 11.3.1 (15E302), which may not be supported by this version of Xcode.
Please help me if anyone have the device support for 11.3.1 (15E302)
Thanks
You need to update to Xcode 9.3.
Another option is to download the 11.3 device support
iOS 11.3
Remove "(15E217)" from folder name, so it became "11.3". Restart Xcode.
You need to upgrade your xcode version to make the app capable to run in that version of iPhone , or you can get the support files form Here and put in this path ( after unZip )
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Xcode 9.2 only supports up to iOS 11.2
Update Xcode

iOS 12 not supported by Xcode 9.4 : Could not locate device support files

This iPhone 8 (Model A1863, A1905, A1906, A1907) is running iOS 12.0 (16A5308e), which may not be supported by this version of Xcode. (Version 9.4.1 (9F2000))
can anyone help with iOS 12.x device support files from Xcode 10 beta?
iOS 12 is only supported by the beta of Xcode 10 or higher.
If you want to use your iPhone 8 with this iOS version (NOT RECOMMENDED) with your Xcode 9.4 you can try to download the last beta of Xcode 10 and after connecting the iPhone to the mac go to this folder:
/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
You can see the iOS version folder of the iPhone, copy and past it to the same location in your Xcode 9.4 folder.
After this you should be able to deploy to your iPhone 8.
As answered by #Kerberos you can copy the iOS 12 device support files to:
/Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
👉 https://github.com/Yatko/iOS-device-support-files
The link provided by Yatko is not supporting the newest iOS 12 versions (public release).
This repository has more iOS versions to offer: https://github.com/iGhibli/iOS-DeviceSupport
Copy the files to the same path as described by Kerberos.
Another convenient way to achieve this without downloading Xcode 10.
https://github.com/sauravexodus/xcode-9-ios-12-support
Note: If you have multiple Xcode versions then be careful with the path written in install.sh file.
Just download latest OS SDK (iOS 12.2) and paste it on respective location.
Downloadable URL:
13.2
13.1
13.0
12.4
12.3
12.2 (16E226)
12.1
12.0 (16A5288q)
11.4 (15F5037c)
11.3 (15E5189d)
11.2
11.1
11.0 (15A372)
10.3 (14E5239d)
10.2 (14C89)
10.1
10.0 (14A5339a)
Follow below step.
1) Unzipped downloaded file
2) Right click on Xcode and click on Show Package Content
3) Then paste your file on path
Contents -> Developer -> Platforms -> iPhoneOS.platforms -> DeviceSupport
4) Restart Xcode
Is it very convenient, saving the trouble of updating Xcode. what? You can't find a new Device Support file! Ok, you can copy it out from your friend's latest Xcode, or download from here
Update:
The added iOS Disk image for iOS 13.0, 12.3 and iOS 12.4

How can i support iOS Version 10.3 with swift 2.3 project

Good Day,
Lastweek i updated my Xcode from 8.2 to 8.3, In my project i used swift 2.3 version. I tried to use multiple version of xcode to my Mac but when i use the older version of Xcode i can't run the project on devices that has iOS Version 10.3.1
I don't know how to run swift 2.3 to iOS Version 10.3.1
Note: My Project still not uploaded on App Store.
Thanks
You need DeveloperDiskImage for iOS version 10.3 to run your project on device(iOS 10.3) using xcode 8.2.
Download Xcode 8.3.2 from here and copy 10.3 (14E269) folder inside DeviceSupport from the downloaded Xcode using path Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ and paste it into Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ path in your existing Xcode 8.2 in Finder.
It's said in release note clearly that Xcode 8.3 no longer supports Swift 2.3 version. So you need to migrate your projects containing Swift 2.3 code to Swift 3 syntax by opening the project and choosing Edit > Convert > To Current Swift Syntax.

Apple - iOS - Testing on iOS 10.3 with XCode 8.2.1

I have a MacBook with El Capitan installed on it. I cannot upgrade to sierra! Because of that, I cannot install XCode 8.3.
Now I need to test an App with iOS 10.3 but I cannot build it with XCode 8.2.1 for iOS 10.3. I have an pyhsical device with iOS 10.3 but XCode wont let me run it on that device.
What to do now?
Doing so is still possible with this simple workaround:
Download the latest Xcode
Right click on the downloaded Xcode.app, select Show Package Contents. Navigate to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport subfolder
Move the 10.3 folder to the identical location in your local Xcode 8.2.1 installation
Don't get disappointed. There is one way.
If you have access any of the mac that is running the latest xcode and up to date simulators, then navigate to this directory copy the simulators you need and past it on the same directory in your OSX.
You can then be able to run the app on the latest simulator and the updated physical device!
/Applications/Xcode8.3.app/Contents/Developer/Platforms/iPhoneOS.platform
Unfortunately, you're out of luck. As this answer specifies, iOS 10.3 requires Xcode 8.3 or greater, which in turn requires macOS Sierra.

Resources