302

I'm on iOS 13.5 and using Xcode 11.4 to build on to it. I'm getting this error message:

enter image description here

The KBlackberry is my iPhone device name.

I tried restarting the device and reconnecting of course and various other things but nothing seems to fix it. My next step is to try a newer version of Xcode.

AmerllicA
  • 29,059
  • 15
  • 130
  • 154
C0D3
  • 6,440
  • 8
  • 43
  • 67

33 Answers33

342

Before you debug with iPhone, follow this mapping table about the version of Xcode and iOS:

Xcode 12.3 → iOS 14.3

Xcode 12.2 → iOS 14.2

Xcode 12.1 → iOS 14.1

Xcode 12 → iOS 14

Xcode 11.7 → iOS 13.7

Xcode 11.6 → iOS 13.6

Xcode 11.5 → iOS 13.5

Xcode 11.4 → iOS 13.4

Download at https://developer.apple.com/download/more/.

If you're still encountering the error, try to unpair the device within the menu Window > Devices and Simulators, clean Xcode, reconnect and trust the device, then re-run. It worked for me! enter image description here

Get more info: https://en.wikipedia.org/wiki/Xcode

陈皓楠
  • 3,576
  • 1
  • 8
  • 6
  • 1
    This was useful after upgrading to 11.5. Thanks! – Zack Shapiro Jul 01 '20 at 21:42
  • 8
    Unpairing worked for me to get Xcode 11.6 -> iOS 13.5.1 – Tim Jul 27 '20 at 16:59
  • 6
    Devices can be found under Window -> Devices and Simulators OR Shift + CMD + 2. But this didn't worked out for me. The last step which is missing in this answer is [here](https://stackoverflow.com/a/63556220/12035498) – FrugalResolution Sep 05 '20 at 15:34
  • weird i have 2 phones both with 13.6.1 and Xcode 13.7, it works on one and doesn't on the other – Hogdotmac Sep 07 '20 at 12:32
  • 20
    I'm speechless that Xcode 11.7 cannot debug a 13.6 phone. – olivaresF Sep 08 '20 at 05:56
  • 6
    Even worse, olivaresF - Xcode 11.7 worked with my 13.6 phone yesterday, but not today! – Carl Smith Sep 08 '20 at 10:13
  • Xcode 11.7 doesn't work with my 13.6.1 phone, wondering if the point release cause the failure – bshirley Sep 09 '20 at 23:29
  • Worked for me. Xcode version 11.7 iphone 13.6.1 previous to upgrade. Somewhat suspicious way of enforcing COVID19 tracking upgrade. – Aus_10 Sep 11 '20 at 01:52
  • Same here @olivaresF I'm not able to debug 13.6 iPad on Xcode 11.7, have to upgrade it to 13.7 to not get this error – Bruce Sep 14 '20 at 00:33
  • 3
    Couldn't build for my iPhone on iOS 14, thanks for this tip! Why would apple wait to release Xcode after iOS 14 !? – Julius Naeumann Sep 17 '20 at 13:16
  • 1
    unpair is great. worked with Xcode 11.7 > iOS 13.6.1 – Vikram Chaudhary Sep 18 '20 at 10:11
  • I also had to restart my device before re-pairing – Pranav Kasetti Sep 29 '20 at 15:31
  • This fixed my issue with xcode 11.7 -> 13.6 iPad... https://developer.apple.com/forums/thread/659166 – Anthony Oct 16 '20 at 00:21
  • 1
    This is also happening on XCode 12.1. iOS 14 which is mindblowing.. – Alexandr Čížek Nov 04 '20 at 11:09
  • I was using Xcode 12 so I updated to 12.2 beta and ran it and it worked fine. Then went back and ran Xcode 12 and now 12 works fine. – dscrown Nov 06 '20 at 15:35
  • 1
    How come the 12.2 Xcode is a beta but the iOS 12.2 is not. This is total garbage. – hasan Nov 09 '20 at 16:54
  • 1
    So don't set your iPad or iPhone to automatic update for the iOS... mine just updated from iOS 14.1 to 14.2 and the Xcode 12.1 stopped working with it and now I have to wait for an hour to upgrade my Xcode from 12.1 to 12.2 as well. It is not a 500MB type of upgrade. It is downloading a whopping 11GB – nonopolarity Nov 26 '20 at 21:43
  • iOS 14 device, updated xcode to version 12.2, which required 40gig of free space, I deleted the existing xcode install, then it still showed the same error until i unpaired it as explained above, from that point the app installed successfully – GenEric35 Nov 29 '20 at 18:49
  • iPad Updated while I was asleep. Bought a macbook air that is too small as Xcode takes up majority of the space. Damn you apple.. – C. Skjerdal Feb 04 '21 at 16:33
  • This table does not seem correct. Till yesterday I was installing my apps on iOS 14.3 using Xcode 12.2 – Parth Feb 21 '21 at 14:12
  • I had this problem with xcode 12.1 ios 14.1. I did all the above. Still didn't work. Then I turned off my iphone and then turned on again. I could see in Window/device and simulators in Xcode my iphone being prepared for development (in the top bar). After that, everything worked. – Zenman C Mar 27 '21 at 01:38
205

Xcode 11.4 includes SDKs for iOS 13.4 as mentioned on the release notes here.

You must update to the beta version if you wish to deal with iOS 13.5.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Moumen Alisawe
  • 2,498
  • 2
  • 12
  • 18
  • 46
    Yes that was it. I had to install Xcode 11.5 beta 2 to get it running. This error message I was having is way too confusing for something simple like this. I think it'd be good to keep this question up to help others seeing the same error – C0D3 May 18 '20 at 14:09
  • 2
    If cleaning the build folder doesn't work, you can follow this other answer which details how to force unpair the device (and also actually see if it's "ready for development"!): https://stackoverflow.com/a/62619030/5974754 – Silvain Aug 27 '20 at 11:00
  • 2
    I wonder how I didn't understand it. It was so clear from the error message... – Christian Vincenzo Traina Nov 03 '20 at 09:39
65

Developers who are using Xcode 11.5 and trying to install their app in iOS 13.6 device will also see this message. It's a very confusing message.

All you need to do is Download Device support files of iOS 13.6 from this link

filsv/iPhoneOSDeviceSupport

  • Close Xcode

  • Unzip and paste it in this location:

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

  • Reopen Xcode.

Now you can install the app on the iOS 13.6 device using Xcode 11.5.

Roman Podymov
  • 4,168
  • 4
  • 30
  • 57
Ankit Saxena
  • 809
  • 7
  • 10
51

Well, to be able to even get some information about why this happens, I did this:

  1. Open Xcode
  2. Go to windowsDevices and Simulators
  3. Select your phone on the left
  4. Scroll down on the right side and see the error
  5. Enter image description here
  6. Update to latest Xcode version
  7. Update you phone to the latest iOS
  8. Unpair your phone from windowsDevices and Simulators.
  9. Pair your iPhone
  10. Enjoy
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Cyrus Zei
  • 2,589
  • 1
  • 27
  • 37
  • This is my solution. Any reason why a *new* version of xcode can't handle an *older* version of iOS? Like one minor version older... – Luc Bloom Sep 10 '20 at 12:30
  • 1
    it is not back-compatible for some strange reason. Ever since they forced the ios 13 SDK this kind of stuff has happened. I have no idea if that has any connection, but I feel like it has and glad it helped you – Cyrus Zei Sep 10 '20 at 18:38
  • 1
    First step for Apple would be to add a "Show Devices and Simulators" button to that dialog. Better yet, append the log from that tool to the error message. – Luc Bloom Sep 11 '20 at 08:22
  • 3
    These things only happen when one is under deadline. – jmf1205 Sep 17 '20 at 01:27
36

Going to Window → Devices and Simulators will give you a better idea of what's going on. In my case, I had to update the iPhone since Xcode updated overnight and stopped supporting my iPhone.

Enter image description here

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Zorayr
  • 23,770
  • 8
  • 136
  • 129
  • Hey Zorayr, did you fix it? I am having the same issue, but as far as I understand Xcode above 11.7 is beta still... – Rodrigo Fava Sep 08 '20 at 15:30
  • 1
    Just need to make sure Xcode is matching iOS version. In my case, I just had to update the iPhone and it worked. – Zorayr Sep 08 '20 at 23:46
  • 1
    I got this because I'm running a beta version that isn't supported by the current App Store release of Xcode – Zack Shapiro Oct 09 '20 at 19:10
21

Follow these steps:

  1. Check your iOS Version from (SettingsGeneralAboutSoftware Version) and get the device support file from the link below:

    https://github.com/iGhibli/iOS-DeviceSupport/tree/master/DeviceSupport

  2. Next, unzip the files and place them at the following location:

    ApplicationsXcode → right click → Show Package ContentsContentsDeveloperPlatformsiPhoneOS.platformDeviceSupport

  3. **Restart your Macbook or pc **

after restarting xcode will configuring and ready to install your app app in your iPhone which is running on higher ios version.

Jigar iOS
  • 3
  • 3
Haseeb Javed
  • 1,769
  • 17
  • 20
18

Xcode 11.4 does not support the new iOS 13.5. Updating to Xcode 11.5 fixed the issue for me

https://developer.apple.com/documentation/xcode_release_notes/xcode_11_4_release_notes

Known Issues Xcode 11.4 doesn’t work with devices running iOS 13.4 beta 1 and beta 2. (60055806)

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Ahmad Tariq
  • 303
  • 1
  • 6
  • This appears to be it, I’m updating XCode now. I was on XCode 11.4.1 with a real iPhone on iOS 13.5.1. – Cloud Jul 10 '20 at 11:36
12

If you are on iOS 13.5 and Xcode 11.5, removing the device and adding it again fixed it for me.

11

Restarting the iPhone helped me.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Faruk Duric
  • 794
  • 1
  • 7
  • 10
10

If your iPhone iOS version is later than Xcode device support, you should download the files device support from this site and then paste at the below location:

/Applications/Xcode11_4_1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.5
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Moayadkom
  • 181
  • 6
10

I had this issue today. [device name] is not available. Please reconnect the device.

My iPhone is running iOS 13.6.1, and the latest version of Xcode will not build with that. I saw a comment on the Apple Developer forums here to update the phone to iOS 13.7, and that resolved the issue for me.

Marcie
  • 1,169
  • 1
  • 10
  • 17
8

If you are using an old Xcode version and your phone is updated, you don't need to update your Xcode. You can simply add the device support.

https://github.com/iGhibli/iOS-DeviceSupport

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Niib Fouda
  • 1,383
  • 1
  • 16
  • 21
7

Whenever this error occurs, either your Xcode version or iPhone version isn't working together. You will have to update one or the either or both.

2020 Update: Xcode: 12 Beta for iOS 14

brockhampton
  • 294
  • 2
  • 8
6

I had the same issue... Xcode 11.5 iOS 13.5 hadn't yet found a fix... so I just switched to build over Wi-Fi ...

Here are some simple instructions on how to get that setup: Wireless debugging for iOS.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
DanielSmurts
  • 593
  • 5
  • 13
6

I am not sure if covered in previous answers, but if you go to:

Xcode menu → WindowDevices and Simulators

You can see warnings and error messages for the device. For example, mine is below... I just updated everything, so I will need to workout where to go from here.

"The current device configuration is unsupported. This iPhone 11 is running iOS 13.6.1 (17G…"

"To run on this device, please update to a version of Xcode that supports iOS 13.6.1. You can download Xcode from the Mac App Store or the Apple Developer website."

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Peter Nichols
  • 61
  • 1
  • 2
5

If you are connecting it with a cable, clean the build folder, run it on the simulator, and then run it again immediately on your phone.

If you are using it without a cable, make sure the Wi-Fi connection is exactly the same on both your PC and your phone or turn the personal hotspot on your phone and connect your PC to the hotspot to make sure they're using the exact same connection.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
daj mi spokój
  • 248
  • 1
  • 2
  • 8
  • It sounds like of "sick-and-wrong" yet elegant, all at once, but I believe you. (This is a device that can happily be on local wifi while hotspotting other devices on BT, WIFI or UBS to your carrier network, at the same time). – benc Oct 12 '20 at 03:58
5

So I guess all roads lead to Rome. If you're using Xcode 11.7 together with iOS 13.6, consider updating your iOS to 13.7. That worked for me. There isn't any need to upgrade Xcode to 12.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Jasper Kuperus
  • 1,612
  • 1
  • 17
  • 22
4

Download the support file for the iOS version of your device from this link and follow the instructions.

Link to the GitHub

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
LeoNard
  • 230
  • 1
  • 9
4

My experience, yesterday my iOS 13.6 is supported by Xcode 11.7 and now today the Xcode rejected my iPhone and I update the Xcode to version 12 and everything get back on track.

Solution:

Update your Xcode to the latest version.

Hint: there is no need to update iOS.

AmerllicA
  • 29,059
  • 15
  • 130
  • 154
3

Restarting my Mac was the only thing that resolved the problem.

Other things I tried before restarting which didn't work:

  • Restarting Xcode.
  • Re-attaching the iPhone.
  • Restarting the iPhone.

I am also now using wireless debugging after reading DanielSmurts' answer.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Danbardo
  • 761
  • 7
  • 12
  • I also recoomend using https://github.com/iGhibli/iOS-DeviceSupport. But indeed, to me only restarting worked. – Igor Jun 29 '20 at 14:40
2

I am now using Xcode 11.6, macOS 10.15.6, and iOS 13.5.1.

First the problem was that I was on Xcode 11.4. But I couldn't upgrade since I wasn't on macOS v10.15 (Catalina) yet. (And I couldn't upgrade because my RAID went down and I couldn't make a backup, but that's another saga.)

After upgrading to Catalina, then to Xcode 11.6 I still couldn't build to the device. So I opened Devices and Simulators and unpaired the phone, as mentioned in the comments here. Then when I tried to re-pair, a warning message said that the device was busy (it was not). Finally, after rebooting the phone (had to untether it for it to come back on), cleaning Xcode, and re-pairing the phone, I finally, finally built to the device. So good luck!

Justin Whitney
  • 1,242
  • 11
  • 17
2

enter image description here

For me it works to unpair the iPhone.

José María
  • 2,835
  • 5
  • 27
  • 42
2

This means the Xcode you are using is not compatible with the iOS version on the device. (You have updated iOS on the device, but have not updated Xcode.)

Open the App Store app and update Xcode.

If there aren't any updates - go here and download the latest version (not beta) of Xcode.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Volodymyr Kulyk
  • 6,455
  • 3
  • 36
  • 63
1

Please download the latest device from this URL and add to devices.

https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
kishor soneji
  • 795
  • 1
  • 9
  • 16
1

If you need to stay on Xcode 11.4, try this:

  1. Install Xcode 11.5 (with xcodes for example);
  2. Copy /Applications/Xcode-11.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.5 to /Applications/Xcode-11.4.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.5;
  3. Select Xcode 11.5, build a dummy sample app and start it with your iOS 13.5;
  4. Kill Xcode 11.5 and switch back to Xcode 11.4.

You should now be able to run your app on iOS 13.5 with Xcode 11.4.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Gawen
  • 46
  • 4
1

Steps I used to fix it:

  1. Updated macOS to 10.15.5.
  2. Updated Xcode to 11.5

It still showed the same error so,

  1. I disconnected the iPhone and reconnected again.
  2. Removed Apple ID and added Apple ID again.

And it worked.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Sujan Shrestha
  • 1,020
  • 1
  • 18
  • 32
1

It is likely that your phone's iOS version is not supported by your Xcode version. You can verify this by "Adding Additional Simulators", tapping the + sign at the bottom left of that dialog, and then selecting "Download more simulator runtimes..." in the OS Version field. Compare the most recent available OS Version to your phone's iOS version (on your phone go to Settings -> General -> About).

Upgrading Xcode fixes this - so long as that doesn't cause any problems for you. If for some reason you need to stay on the same Xcode version but still need to support a newer iOS version, check this article out: https://davidlaristudios.com/2016/11/adding-device-support-to-xcode/

You can actually copy the device support out of a newer Xcode version and paste it into your Xcode version. Note that this requires that you download the new Xcode version separately - don't upgrade your current version. You can download the newer Xcode version directly from Apple.

TJ Olsen
  • 323
  • 2
  • 15
1

I was using Xcode beta 3 (the latest at the time of writing) and encountered this issue with an iPhone XS running the latest iOS 14 Beta.

The solution, after trying a lot of suggestions, was to restart my iPhone.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
1

I am using an iPhone SE iOS 13.6.1 and Xcode 13.5 and I faced the same issue. While the iPhone is not available. Please reconnect the device warning window is open, I turned off the iPhone, reopened and rebuilt the Xcode project, Trusted in the iPhone and my problem was solved.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Emre Değirmenci
  • 715
  • 6
  • 22
1

After trying all of the previous answers, the only thing that worked for me iOS 14.2 was to run Xcode 12.2 beta, and then switch back to Xcode 12.0.1 production.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Marc Bolh
  • 383
  • 3
  • 16
1

If the Xcode version you're using supports the major iOS version you're targeting, there's a workaround. Let's say you have installed Xcode 12.1.0 and you wish to run your project on a device with iOS 14.2.

Then, you can download the iOS Developer Disk Image from here and move it from the downloads folder to /Applications/Xcode_12.1.0.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

You'd download iOS 14.2 Developer Disk Image and extract the contents of 14.2.zip to your Xcode's DeviceSupport directory.

BelfDev
  • 306
  • 5
  • 7
0

I had the same issue with Xcode 11.6 and iOS 13.6. Unpairing the device and adding it again solved the problem.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
hugoalexandremf
  • 166
  • 1
  • 1
  • 9
0

For some reason, switching USB ports worked for me. I tried many of the above solutions - updating, etc. Nothing worked until I switched to a different USB port. Strange!

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
JT at WFS
  • 1
  • 1