Using iOS8 and later devices with Xcode - ios

Using iOS8 and later devices with Xcode?

Well you have two options:
1)Straightforward, download Xcode 9 and you are good to go.
2) You need to put DeveloperDiskImage of iOS 11 in
/Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Put iOS 11 DiskImage
and you can find this diskImage in Xcode9 at same path in case you want to continue with XCode8
Path of iOS 11 Disk Image:
~/Applications/Xcode9.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0
NOTE: Xcode 9.0 requires a Mac running macOS Sierra 10.12.4 or later.

Up to iOS 12.1 is available
You can download DeveloperDiskImage.dmg here or here
Steps:
1.Download Zip file and extract.
2.Click on "Finder" in MAC OS
3.Click on "Go to Folder"
4.Paste /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport . Otherwise go to Applications > Right Click on Xcode > Show Package Contents and follow the directories above.
5.Reboot Device + Xcode + Mac

One of the reasons why software no longer installs, such as you can't install Sierra or Xcode 9 has more to do with Apple making your computer obsolete.
Here is a recent (2016 Addition to machines no longer supported by Apple), and there are so surprises there.
I have a perfectly running iMac Early 2008, and 2 years ago it was placed on the obsolete list. I can no longer update certain programs, such as install Sierra or Xcode 9.2.
There are some very disgruntled people who purchased MacBooks and Apple made them obsolete without even introducing an upgraded machine to replace it.
Now, if I want to have my Apps run on the new iOS 11 OS, I need to replace a perfectly good and working machine. That is not right.

You can't run ios 11 on Xcode 8.2
You need Xcode 9 beta
https://developer.apple.com/download/
Xcode 9 beta requires a Mac running macOS 10.12.4 or later. Xcode 9
beta includes SDKs for iOS 11, watchOS 4, macOS 10.13, and tvOS 11
.

Related

How to fix error "Could not locate device support files"

I have the latest Xcode 11.1
iOS is updated to the latest release 13.2
I'm getting error:
Could not locate device support files.
This iPhone 6s is running iOS 13.2 (17B84), which may
not be supported by this version of Xcode. An updated
version of Xcode may be found on the
App Store or at developer.apple.com.
This happens to all iOS devices running 13.2
What I'm missing here?
That's easy.
Those files are contained in Xcode itself.
Thus, all you have to do to use devices with a newer iOS version - create junction folder (hard link) of those support files from new Xcode (in our case - the beta 11.2) to older Xcode (11.1).
And yes, before that you have to download beta Xcode 11.2.
Otherwise, you also can download only support files from the Internet, if someone already shared them and just toss 'em to Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
P.S. to create junction folder use this command in terminal:
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
It allows you to not to duplicate the same files across your Mac
P.S. Be aware! You have to launch newer Xcode (Beta) you downloaded at least one time to install updated Xcode Tools before you can use symlinks (hard links, junction folder) to Device Support files in older Xcode, otherwise you'll get an error and will not be able to build your app.
I've been reading about hacks to get it to work on the current version of Xcode. Honestly not interested in going down that path. Bottom line, Apple released iOS/iPadOS 13.2 but did not release Xcode 11.2 (still in beta). Gotta go to developer.apple.com and download the latest beta of Xcode 11.2 to run apps on both iOS and iPadOS 13.2 devices. Hopefully they release Xcode 11.2 soon. The last beta was from Oct 11.

Could not locate device support files in Xcode [duplicate]

This question already has answers here:
How to fix Xcode error: Could not locate device support files on iPhone with Xcode
(8 answers)
Closed 4 years ago.
I got following error in Xcode when run my app in my Device. Xcode Version is 10.01, My Device iOS Version 12.2 (iPhone 5S).
Could not locate device support files.
You need to update your Xcode to the latest version. You can use this link.
OR
You can download latest iOS device support file from this github repository and copy the folder to this path of your current Xcode:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Now after restarting your Xcode, it should work fine.
You can get the latest device support files here:
iOS 13.6
iOS 14.0 (From Xcode 12 beta 4)
for iOS 12.2 you need Xcode 10.2 beta 2 and if you don't want to download new xcode then you need to manually download device support files.
You can download 12.2 simulator from here and paste this folder at this path.
Donload simulator : Simulators
Simulator Path :
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
After doing this you will able to run in your 12.2 device.
Well, you should update your Xcode to latest version to support running it on your iOS Device.
From overView here, it supports upto iOS 12.1:
Xcode 10.1 includes SDKs for iOS 12.1, watchOS 5.1, macOS 10.14.1, and tvOS 12.1. Xcode 10.1 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 10.1 requires a Mac running macOS 10.13.6 or later.
You can read release not here and can download Xcode 10.2 beta version here
Hope it helps.

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)

Is there a way to get iOS 7 simulator on Xcode 7

I just updated my Xcode to the newest version (7.0 7A220) and I lost the iOS 7 simulator that I had in the previous version. I still have the iOS 7 SDK and was wondering if there is way to use it on the newest version of Xcode, instead of installing another version of Xcode on my OS X.
Download the official installation package from: https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK7_1-7.1.1.1354140590.dmg
This is where Xcode 6.4 is downloading it from.
But it won't work on El Capitan, only on Yosemite. The runtime has a problem with El Capitan... So until Apple solves it (if they want to), we're stuck.
As for my initial analysis referred from link you cant install it and use older version of Xcode version for using respective iOS simulators. To use iOS 7.1 go for Xcode 6.4 or earlier. Install Xcode 6.4 and download respective simulator from Preference.
To download older version of Xcode you need to login with developer account https://developer.apple.com/downloads/

installing ios 7 on xcode 6.1 on yosemite

I have search a lot and comes up with lot's of different solutions and opinions which I got really confused .
I have xcode 6.1 installed with ios 8.1 simulator and I'm trying to test my apps on ios 7 . There are so many different opinions about installing ios 7 . Some says that ios 7 is not working on Yosemite and some says otherwise. also I have tried to install ios 7 from preference>devices but It got stuck and there is no progress at all with downloading.
Can anybody helps me please?Is it possible to run ios 7 on xcode 6.1 and yosemite?If so , how should I download ios 7 simulator for xcode 6.1 without using the xcode download section?maybe I can extract it from older version of xcode or download it from another source.Does upgrading to higher version of xcode helps?
Thanks
Open at Xcode Window menu, then Devices and there you can add desired simulator using little + button at the left bottom corner
The iOS 7.0 Simulator Runtime is not supported on OS X Yosemite.
The iOS 7.1 Simulator Runtime is supported on OS X Yosemite.
Install Xcode 6.2 and navigate to Xcode -> Preferences -> Downloads, and you will be given the option to install the iOS 7.1 Simulator Runtime. It will install below /Library/Developer/CoreSimulator.
Note that some versions of Xcode have a bug where the download will not occur if your laptop is running on battery. I do not know of the top of my head which versions of Xcode are affected. If the download progress isn't moving forward, go connect to AC.
Of course you can run iOS 7 on Xcode 6 or higher version. In order to download the iOS 7 follow the blow steps
Xcode > Preferences > Downloads > Choose the iOS 7 simulator
UPDATE
If you want to extract the iOS sdks from older version go to the terminal and follow below and then restart the xCode.
cp -r SOURCE_PATH DESTINATION_PATH
for example
cp -r /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/

Resources