Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Using iOS 10.3 devices with Xcode 8.2.1
// The trick is to link the DeviceSupport folder from the beta to the stable version.
// Updated on Jan 24th, 2017 for Xcode 8.3b1
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3\ \(14E5230d\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
// Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
// sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
nuudles commented Jun 20, 2016

I prefer a symbolic link. Less duplication and still works!

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5261u\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

rshev commented Jul 6, 2016

I'm getting strange kAMDMobileImageMounterDeviceLocked error with beta 2. Does it work for you guys?
(of course I use path for 14A5297c build)

gravicle commented Jul 6, 2016

@rshev: Was getting the same.

Restarted Xcode
Disconnected and then reconnected iPhone
Xcode processed symbol files again

Works now.

cherpake commented Jul 7, 2016 edited

For Beta2:

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ (14A5297c)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

hactar commented Jul 7, 2016

cherpake's didnt work for me, (missing a slash). This worked for me for beta2:

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5297c\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

@gravicle HELP. im getting kAMDMobileImageMounterDeviceLocked as well... tried everything, even xcode beta 8

ethanhuang13 commented Jul 19, 2016 edited

For Xcode 8 beta 3, use:

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5309d\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

Druux commented Jul 21, 2016

@ethanhuang13 I just created a symlink but I am still unable to switch the Deployment Target of my application in Xcode 7.3.1 to iOS 10.0...

Same problem as @ethanhuang13

ethanhuang13 commented Aug 2, 2016 edited

The symlink just create iOS 10 device support for Xcode 7. You still need to use Xcode 8 to build against iOS 10 SDK or to use iOS 10 as Deployment Target. However, if you want to play with iOS 10 SDK but would like to keep the status of your project, suggest to read: Simultaneous Xcode 7 and Xcode 8 compatibility.

For Xcode 8 beta 4:
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5322e\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

Legoless commented Aug 10, 2016 edited

For Xcode 8 beta 5:

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5335a\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

For Xcode 8 beta 6:

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5339a\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

I haven't had to re-do this since grabbing the device support folder from beta 1...but I updated iOS 10 to beta 6 and now I'm getting "Unable to read from device". Anyone confirm this doesn't happen if you regrab the device support folder from the latest Xcode 8 beta?

soffes commented Aug 16, 2016

I could get this to work with Xcode beta 6 but not on a device with beta 6. A device with beta 5 works though. Noticed the Device Support folder ends in 39a but the OS on my beta 6 device ends in 41a. Guessing that's the problem.

After adding the link to the beta 6 folder I'm sometimes getting strange errors in Xcode 7.3.1 when running my apps (even with the simulator).

Noticed the Device Support folder ends in 39a but the OS on my beta 6 device ends in 41a. Guessing that's the problem.

Yup...that would likely be the problem since Xcode doesn't think it should exist. >.<

tianguanghui commented Aug 17, 2016 edited

@soffes @jstheoriginal
I have the same problem about "Noticed the Device Support folder ends in 39a but the OS on my beta 6 device ends in 41a".
Is there any other way to resolve the problem?

2016-08-23 After I reset the iPhone networks,then reboot the iPhone,then I can build on my iPhone.

I was able to build on my OS X 10.11.6 machine using XCode 7.3.1 on an iPad Mini 4 running iOS 10.0 beta 6 but when I try building on my iPhone 6S running 10.0 beta 6. I get the "Cannot read from device" error. I have tried everything posted above to no avail.

StanislavK commented Aug 24, 2016 edited

2016-08-24: Copied the last 2 disk images from Xcode 8.b5+b6 and after I reboot (this is mandatory) iPhone (6S+) and restarted Xcode: I can now build from Xcode 7.3.1, thanks @tianguanghui

Finally!!! Back to being able to test iOS 10 with Xcode 7.

Thanks to @tianguanghui & @StanislavK

  1. Copy the 2 disk images from Xcode 8 b5/6 into Xcode 7 as described above.
  2. On your iPhone, go to Settings and reset your NETWORK settings.
  3. Restart iPhone and Xcode

It should now properly install the symbol files and let you install your build once that is complete.

What worked for me

Setup:
Xcode 7.3.1 and Beta 6
iOS 10 beta 6

  1. sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5339a\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  2. iPhone: Settings > General > Reset > Network Settings
  3. Reboot iPhone
  4. Reboot Mac (restarting Xcode alone didn't work)
Maxatma commented Sep 6, 2016

Just create symlink like

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(xxXxxxxX\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

but first find xxXxxxxX in your Xcode-beta folder:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\

I just reopen Xcode and it work, no reboots.

nice

youweit commented Sep 19, 2016

this save my life

Nice, i read about this little trick at stack overflow but it didn't seem to work. But reconnect the iPhone was the missing detail. Thank you for this help.

👍 Thank you very much!!!

After I did "sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ (14A456)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport" , another error message appears: "The file “DeveloperDiskImage.dmg.signature” couldn’t be opened because there is no such file." Do you know why?

For iOS 10.1 beta 2 and Xcode 8.0:

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.1\ (14B65)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

  • restart Xcode, then plug in device.

@loisyang Maybe check /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ to see if there is folder 10.0 (14A456) as in your script. If not see comments above.

Shouldn't Xcode have an update that works with iOS 10.1 by now?

sudo ln -s "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.2 (14C5077a)/" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport"

sudo ln -s "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3 (14E5230d)/" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport"

For iOS 10.3 b2 (14E5239e), get Xcode 8.3 b2 and then:

sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3\ (14E5239d)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

I don't want to download Xcode 8.2 BETA ( 4.5 GB ). I need IOS os 10.3 SDK. Could you send /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3\ (14E5239d)/ me ? I need only ONE folder. Then, I paste this into Xcode folder. I hope that works correctly :)

If someone upload this folder, make me happy :)

@burakodabas , mate, did you try that? with the content folder? If you did ant its working, could you share it with me? :) :) 👍

Hello - I need to connect iOS 10.2.1 device in testplant app, please advise what version xcode, OSX version, and iOS GW to you used

yuriismith commented Mar 29, 2017 edited

If somebody needs contents of 10.3 folder from Xcode 8.3 (this is to build on iOS 10.3 devise using Xcode 8.2) https://drive.google.com/open?id=0B6RLdMSojh9TOW5DZmV1WVB3N3c

Hello, is there a way to use a iPhone with 10.3 with xcode 8.2.1? My older macbook pro early 2008 doesn't support sierra. :(

Here I have this file for 10.3 into Xcode 8+.
You can download file from this link.

https://www.dropbox.com/s/i1f7q8w3vgr2ozl/10.3%20%2814E269%29.zip?dl=0

Steps:-

  1. Download above Zip file and extract them.
  2. Click on "Finder" in MAC OS
  3. Click on "Go to Folder"
  4. Paste this path over their (make sure that you have installed xcode with named : "Xcode.app")
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  5. Paste your extracted "10.3 (14E269)" directory to that place.
  6. quite Xcode and restart it. you can run your projects successfully in your real device.

Thank you,

Darshit

@mendaparadarshit tried that but didn't work.

iPhone version is 10.3 (14E277)
Maybe i need a different .zip matching that version ?
Thanks

mendaparadarshit commented Mar 31, 2017 edited

@sgiatrakis have you checked that in path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport" there is directory exist after copy paste this "10.3 (14E269)" directory because I have used this directory in 3 other PC and its working nice because I have my own company and we have team (Using 5s 10.3 after upgrade and xcode 8.2.1 with 10.2 iOS so needed to done that in all System.) and also I have restarted system after done this process.

@mendaparadarshit

Its not working for me too, please check it again with your xcode :)

Darhsits solution worked, thanks!

@mendaparadarshit mac's reboot did the trick for me. Thank you!

crododile commented Mar 31, 2017 edited

@mendaparadarshit mac's reboot did the trick for me too. Thank you!

jyoten commented Apr 1, 2017

@mendaparadarshit, this worked for me too

worked on the first try. thanks @mendaparadarshit!

mykoma commented Apr 5, 2017

It's worked, thanks.

Need one for 10.3.1 "running iOS 10.3.1 (14E304), which may not be supported by this version of Xcode."

romin771 commented Apr 9, 2017

@mendaparadarshit thank you , with your explanation i solved my problem , cheers

sandalsoft commented Apr 9, 2017 edited

@mendaparadarshit's tip did it for me. Instructions worked perfectly, thank you!

For those who find this later, it's this comment: https://gist.github.com/steipete/d9b44d8e9f341e81414e86d7ff8fb62d#gistcomment-2042751

And I mirrored the 10.3 (14E269) directory in case @mendaparadarshit removes his: https://dl.dropboxusercontent.com/u/9896528/10.3%20(14E269).zip

Need one for 10.3(14E277), Please help me.

Same here. I can host all the versions if anyone needs but first someone need to share the files.
What Apple thinks...there are lot of people that still uses El Cap and cannot just move to Sierra

It's worked, thanks.

tomcondon commented Apr 10, 2017 edited

@Actually 10.3.1 only requires device support 10.3 (14E269). I renamed my XCode to Xcode_8.2.1 and installed Xcode 8.3.1 then ran the following command: "sudo cp -pPR /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3\ (14E269) /Applications/Xcode_8.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport". Just make sure Xcode-select is pointing to your Xcode 8.2.1 and you should be good to go. After I did this I was able to run from Xcode and successfully deploy to TestFlight.

Shoutout to @mendaparadarshit the real mvp. Worked like a charm.

Managed to get Xcode 7.3 working by symlinking the 10.3 image from Xcode 8.3.

@mendaparadarshit need 10.3.1(14E304) developer disk image, plz share if you have. Thanks

@mendaparadarshit Thanks for sharing this fix so much. Worked for me without any restarting.

@Neeraj204 Try the file that he has already uploaded to the dropbox if you haven't. I thought I would probably need 14E304 as well but it turned out to work fine.

if anyone has 14E304 please ping me.. i tried the 10.3 and it doesn't work.

adam187 commented Apr 20, 2017

+1 for 10.3.1(14E304) developer disk image

+1 for 10.3.1(14E304) developer disk image

The initial instruction worked for me - 10.3.1 (14E308)

thank you @mendaparadarshit, your solution worked for me.

rerezz commented Apr 21, 2017

Xcode was asking me for 14E304 as well. I tried with 14E269 @sandalsoft provided. This worked for me. Thanks to everyone who helped to solve this issue!

+1 for helping solve a really ugly situation! I'm using Xcode 8.2.1 and the vanilla 10.3 download from @mendaparadarshit allowed me to get my 10.3.1 device working fine with Xcode (via xcode automagically getting the symbols from the 10.3.1 device). This should work with all 10.3 variants moving forward as well...

@mendaparadarshit solution worked for me too. Running a 2008 Macbook Xcode 8.2.1 & iPhone 6 10.3.1 FTW!

Xcode was asking me for 14E304 as well. I also tried the 14E269 @sandalsoft provided and this worked for me as well! Thanks for the support everyone!

Mendaparadarshit's solution worked for me too. Running a 2008 Macbook Pro with El Capitan and Xcode 8.2.1 using an iPhone 7 with iOS 10.3.1!

Thanks a lot!

dsp420 commented Apr 24, 2017

Probably on wrong forum. But maybe you can help. My iPhone is on iOS 10.3. My Xcode goes only to 7.1.2 I believe sincenit can't go past Yosemite. Old Mac book pro. But I've read you can change somethings to make it work. I'm trying to spoof a location for an app but I get the worsening for a disk management. My guess is that it means I have to pay for a developer license but everyone else I've asked for this to get done didn't pay for one. If you know a way and can help me or point me to right place. I'd really appreciate it because when it comes to team I'm just supposed to put Apple ID in but it won't accept. And I'm guessing because my iOS doesn't reach 10.3 any pointers would help. Thank you

freakdragon commented Apr 28, 2017 edited

Xcode 8.3.2. IPhone 5 (14E304). Tried to write'sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3.1\ (14E304)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport'. Nothing happens for me. When I remove folder of "10.3 (14E269)".XCode writes error "This iPhone 5 is running iOS 10.3.1 (14E304), which may not be supported by this version of Xcode." When I copy the folder from archive I have error: "dyld_shared_cache_extract_dylibs failed". I broke my head. From one error to another.

From a dev to a dev -- thank you! ;)

@mendaparadarshit, thank you very much, you saved me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment