11

Trying to build on iPhone, but here's what it shows..

enter image description here

How to fix it?

MikeMaus
  • 385
  • 3
  • 22
  • 1
    Download the latest beta of Xcode – jnpdx Apr 23 '21 at 04:05
  • thanks! I had thought that version from AppStore has to be ok. – MikeMaus Apr 23 '21 at 04:12
  • App Store version will be released once everything is out of beta. 14.5 and 12.5 are still in release candidate stage. – jnpdx Apr 23 '21 at 04:13
  • 2
    Usually you want matching numbers after the `.` (for example, Xcode 12.1 and iOS 14.1, or Xcode 12.5 and iOS 14.5) – aheze Apr 23 '21 at 04:30
  • 2
    @aheze You are right. Mac App store wasn't showing the available xcode 12.5 update. Upon updating to 12.5 the error is gone! – AceN May 01 '21 at 12:18
  • Hi! Please consider accepting my answer if it helped. Thanks :-) – Sergio Jul 08 '21 at 09:46
  • @Sergio , hi! thanks for helping out! What actually helped me was downloading the latest beta of Xcode, so I don't know if this works. No problem to accept if it works for people? – MikeMaus Jul 08 '21 at 13:09

3 Answers3

22
  1. Check out this repo https://github.com/iGhibli/iOS-DeviceSupport

  2. Download this folder:

  3. Move it into:

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

  4. Close Xcode and open again.

  5. Build and run

Sergio
  • 1,610
  • 14
  • 28
  • It took me few mins for Xcode to recognize the new folder even after I relaunched few times. Thanks anyway. – Umit Kaya May 28 '21 at 07:52
  • 10
    i din't find 14.6 – Max Jun 15 '21 at 12:26
  • 2
    I'm strongly under the impression Apple forgot to roll out device support for 14.6 and is jumping over to iOS 15 with the XCode 13 beta. Can someone please tell me I'm wrong and it is actually trivial to run an app on a iOS 14.6 real device... – Sebastiaan Jun 16 '21 at 14:47
  • You can download Xcode 13 beta, go to Applications, right-click on Xcode beta 13, and select Show Package Contents. Once there, go to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport and look for 14.6. If it exists, it should be there :-) – Sergio Jun 16 '21 at 15:30
5

Just to run the damn thing, I managed to do this without having to download any new profiles as per the other answer. Just took 14.4 renamed to 14.6 and it worked on Catalina XCode 12.4.

Daryl Teo
  • 5,394
  • 1
  • 31
  • 37
4
  1. Right-click on /Applications/Xcode & choose Show Package Contents
  2. Make a duplicate of 14.5 directory by copy and pasting it into the same directory (into DeviceSupport) then rename the directory to 14.6
  3. Now Quite Xcode and try again.

It will work 100% sure.

SHISHIR
  • 321
  • 3
  • 4
  • Show Package Contents doesn't show 14.x on my macOS Catalina 10.15.7 – Doug Null Jul 20 '21 at 23:50
  • 1
    This is good advice but incomplete. As Sergio said above, once you Show Package Contents, you have to drill down several directories to find the 14.5 directory. Specifically: Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/14.5. – ClayJ Aug 01 '21 at 22:49