44

This iPad mini 2 (Model A1490) is running iOS 10.3 (14E277), which may not be supported by this version of Xcode.

my xcode version 8.2.1 my Device ios version 10.2

Jack G.
  • 3,681
  • 4
  • 20
  • 24
Mohammad Razipour
  • 3,643
  • 3
  • 29
  • 49
  • 8
    This is ridiculous - Apple says i don't even have an update for Xcode in the app store. – Clayton C. Mar 29 '17 at 19:35
  • Xcode is available but required Sierra (10.12). I need to a trick for work with osx 10.11, xcode 8.2.1 and ios 10.3 – Klamore74 Mar 30 '17 at 10:09
  • need a fix for that, too! i am using osx 10.11 and xcode 8.2.1, too – Mr. 0x50 Mar 30 '17 at 21:10
  • 3
    developing for apple products is the worst experience ever. after every update in iOS my development env is stuck and i have to do this and that to do even simple debugging on my own iphone – Adeem Apr 28 '17 at 11:14
  • @Adeem But the colors are much nicer than in Visual Studio. – u17 Apr 29 '17 at 14:27
  • 3
    iPhone Developer for nearly 6 years now - but Ive got to say this is one of the very crappest things. Im constantly unsure whether I can update my phone and whether or not it will break XCode. Sort it out Apple. – Luke Smith May 04 '17 at 08:25
  • 2
    @LukeSmith agreed. I been developing for 8 yrs now and Apple are so stupid right now I can't even begin to say how much i hate them. – GeneCode May 25 '17 at 03:22
  • 2
    @Adeem and the download size 4.5 GB. Awesome. – m.awad Jun 27 '17 at 19:27

5 Answers5

85

You can avoid both the update to Xcode 8.3 (which works only with macOS Sierra) and the Dropbox download from a random link on GitHub, as suggested in other answers. To work with iOS 10.3 in Xcode 8.2.1, follow these steps:

  • Exit Xcode 8.2.1

  • Download Xcode8.3.3.xip from Apple (https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_8.3.3/Xcode8.3.3.xip) (requires sign-in)

  • Unzip ~/Downloads/Xcode8.3.3.xip (in Finder, double-click)

  • Copy folder 10.3.1 (14E8301) from ~/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport (in Finder, right click on Xcode.app and 'Show Package Contents')

  • Remove ~/Downloads/Xcode8.3.3.xip and ~/Downloads/Xcode.app

  • Start Xcode 8.2.1. Done.

u17
  • 2,776
  • 4
  • 31
  • 43
  • 2
    Nice hack! Works without upgrading to macOS Sierra. – voltae May 07 '17 at 09:46
  • 5
    In Xcode 8.2, iOS 10.3 won't appear as an option in the base SDK nor in the iOS Deployment Target, but you can still deploy the app to your iOS 10.3 device without problem. – Jack G. May 20 '17 at 15:51
  • 2
    This worked for me. Thanks. If you want to download stuff from Apple and not from an unknown developer and also to not have to upgrade your Mac to Sierra then use this solution. – Chaim Friedman May 26 '17 at 16:44
  • This worked great! I got the app to build but initially it wouldn't run on the device. Xcode complained in the console that `dyld` would not load `libswiftAVFoundation.dylib` as no suitable image was found and the only available one had an invalid code signature... So I did a `Product -> Clean` action (CMD-Shift-K) and rebuilt the app and that solved it. – llude Jul 03 '17 at 00:04
  • Thanx a lot. you saved my day. I was hitting my head around and did not have any idea that this would work. (Y) – Saleh Masum Aug 17 '17 at 10:03
  • 1
    For some reason Finder gets stuck at verifying the xip. Any ideas? – Pier Aug 29 '17 at 00:19
  • I had to restart macOS. – Pier Aug 29 '17 at 00:39
  • @Pier you must have patience, it takes a while, xip unpacks from 4gb to 10gb and then verifies all files. – Shebuka Sep 06 '17 at 15:13
  • @frank Seifert - Do you have a new trick now that iOS 11.0.2 is out? Apparently my device updated to it last night and now I'm stuck... – Anthony Oct 05 '17 at 02:50
  • this is still working to run on iOS 12 using Xcode 9, just that I didnt copy the whole DeviceSupport folder, only the 12.0 folder, which I think is better – rgkobashi Nov 08 '18 at 05:59
62

In order to run your app on 10.3 device with Xcode 8.2.1 you'll need a new Developer Disk Image for 10.3.

You can follow this user's guide here that seems is working for me too. Use at your own risk.

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.You'll notice that your versions ends at 10.2. So you need the new 10.3. Paste downloaded folder.

6.Reboot Device + Xcode + Mac

dejix
  • 1,144
  • 1
  • 12
  • 23
  • 1
    Only needed to disconnect & reconnect device restart Xcode. Also, you'll need to wait for Xcode to process the symbol files but this solution works :) – baskInEminence Apr 07 '17 at 17:24
  • 2
    It is possible to [avoid the Dropbox download and download from Apple instead](http://stackoverflow.com/a/43696751/385513). – u17 Apr 29 '17 at 14:35
  • 1
    Thank you for this! – DiamondDrake Apr 29 '17 at 20:50
  • 4
    uuh - i strongly not recommend to download xcode from unknown source. i remember there was a infection vector by installing xcode from download servers in china. all apps build with this xocde got infected – muescha May 22 '17 at 16:44
  • 1
    This has saved me twice now. – bmovement Apr 26 '18 at 14:08
12

Just solved it. Get new Xcode here: https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12

Clayton C.
  • 863
  • 1
  • 8
  • 17
  • 2
    This should be the correct answer, and not downvoted... All you need to do is manually search "xcode" on the App store and download it. It won't show up on your dock as an available download depending on how you first installed it. – Joe Mar 30 '17 at 21:23
  • Thanks, @Joe. No idea why no one liked the answer - this was an easy fix. – Clayton C. Mar 31 '17 at 00:53
  • fixed it for me! – lisa Mar 31 '17 at 10:13
  • 17
    Note that this requires Mac OS 10.12 (Sierra). If you try to install on Mac OS 10.11, the Mac App Store doesn't show an error, it just shows an endless activity indicator. – arlomedia Apr 10 '17 at 16:59
  • Good point @arlomedia - Every time you update Xcode, OSX, or iOS, they ALL need to be the most current, or you will get the same error that was addressed in this question. The easiest way to avoid this is to ALWAYS make sure that, if you update one of the three, you make sure to update the other two...or at least make sure all three are THE MOST CURRENT. – Clayton C. Apr 10 '17 at 19:22
  • The versions aren't always coupled that tightly -- for example, I didn't have to update my Mac to develop on iOS 10.1 or 10.2 devices, and I'm still developing on iOS 8 devices with Xcode 8.2 -- but sometimes they are, which can bite you if you're not prepared to update your whole Mac system. – arlomedia Apr 10 '17 at 21:12
  • I was bit by this, and was unprepared to buy a new Mac to run Sierra officially. Which itself seems like an odd problem to have, but some of us are broke, yo. It's a crude hack or nothing for me for the foreseeable future. – Left For Archive Apr 24 '17 at 03:31
  • 2
    Upgrading xcode is not the "correct" answer @joe, but it is "an" answer. The question specifically asks for how to deploy to ios 10.3 WITH his current version of XCode, which jejix answered directly. – DiamondDrake Apr 29 '17 at 20:55
3

According to the message it feedbacks to you, I believe your device iOS version is 10.3. And you have to update your Xcode to 8.3 since it provides the necessary SDKs for iOS 10.3 (see more detail from Apple).

I think what you can do is:

  1. Double check your device iOS version
  2. If it is iOS 10.3, update your Xcode from App Store (Notice that it requires your Mac running macOS 10.12 or later). Or if you have to test your project on iOS 10.2, just find a way to downgrade it (Downgrade iOS 10.3 to the previous iOS version).

Hope this helps.

Community
  • 1
  • 1
Michael Revlis
  • 1,463
  • 11
  • 14
0

I had this exact same issue, for me the fix was to keep running the app from xcode...eventually it just booted up on my phone and the error went away.

Hopefully this helps someone!

James111
  • 15,378
  • 15
  • 78
  • 121