Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using iOS 12.1 devices with Xcode 10.0
// The trick is to link the DeviceSupport folder from the beta to the stable version.
// Updated on Oct 9th, 2018 for Xcode 10
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.1\ \(16B5068g\) /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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

cherpake commented Jul 7, 2016

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

This comment has been minimized.

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

@epicdude3161

This comment has been minimized.

epicdude3161 commented Jul 8, 2016

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

@ethanhuang13

This comment has been minimized.

ethanhuang13 commented Jul 19, 2016

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

This comment has been minimized.

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...

@MarioQueiros

This comment has been minimized.

MarioQueiros commented Jul 30, 2016

Same problem as @ethanhuang13

@ethanhuang13

This comment has been minimized.

ethanhuang13 commented Aug 2, 2016

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.

@ethanhuang13

This comment has been minimized.

ethanhuang13 commented Aug 2, 2016

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

This comment has been minimized.

Legoless commented Aug 10, 2016

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

@jstheoriginal

This comment has been minimized.

jstheoriginal commented Aug 15, 2016

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

This comment has been minimized.

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.

@weinspach

This comment has been minimized.

weinspach commented Aug 16, 2016

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).

@jstheoriginal

This comment has been minimized.

jstheoriginal commented Aug 17, 2016

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

This comment has been minimized.

tianguanghui commented Aug 17, 2016

@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.

@SAPIENTechnologies

This comment has been minimized.

SAPIENTechnologies commented Aug 17, 2016

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

This comment has been minimized.

StanislavK commented Aug 24, 2016

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

@jstheoriginal

This comment has been minimized.

jstheoriginal commented Aug 29, 2016

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.

@timbroder

This comment has been minimized.

timbroder commented Aug 31, 2016

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

This comment has been minimized.

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.

@zhaoxiaobao

This comment has been minimized.

zhaoxiaobao commented Sep 17, 2016

nice

@youweit

This comment has been minimized.

youweit commented Sep 19, 2016

this save my life

@Schr0eder

This comment has been minimized.

Schr0eder commented Sep 23, 2016

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.

@SailReal

This comment has been minimized.

SailReal commented Sep 23, 2016

👍 Thank you very much!!!

@loisyang

This comment has been minimized.

loisyang commented Sep 29, 2016

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?

@StanislavK

This comment has been minimized.

StanislavK commented Oct 5, 2016

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.
@StanislavK

This comment has been minimized.

StanislavK commented Oct 5, 2016

@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.

@revolter

This comment has been minimized.

revolter commented Oct 26, 2016

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

@mikelsons

This comment has been minimized.

mikelsons commented Oct 26, 2016

@drunknbass

This comment has been minimized.

drunknbass commented Nov 16, 2016

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"

@drunknbass

This comment has been minimized.

drunknbass commented Jan 27, 2017

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"

@StanislavK

This comment has been minimized.

StanislavK commented Feb 7, 2017

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

@burakodabas

This comment has been minimized.

burakodabas commented Feb 10, 2017

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 :)

@juanocataldo

This comment has been minimized.

juanocataldo commented Mar 22, 2017

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

@Romanmikey

This comment has been minimized.

Romanmikey commented Mar 22, 2017

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

This comment has been minimized.

yuriismith commented Mar 29, 2017

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

@DirtyLyle

This comment has been minimized.

DirtyLyle commented Mar 29, 2017

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. :(

@mendaparadarshit

This comment has been minimized.

mendaparadarshit commented Mar 30, 2017

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

@sgiatrakis

This comment has been minimized.

sgiatrakis commented Mar 30, 2017

@mendaparadarshit tried that but didn't work.

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

@mendaparadarshit

This comment has been minimized.

mendaparadarshit commented Mar 31, 2017

@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.

@nickAppleDev

This comment has been minimized.

nickAppleDev commented Mar 31, 2017

@mendaparadarshit

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

@dxshindeo

This comment has been minimized.

dxshindeo commented Mar 31, 2017

Darhsits solution worked, thanks!

@sgiatrakis

This comment has been minimized.

sgiatrakis commented Mar 31, 2017

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

@crododile

This comment has been minimized.

crododile commented Mar 31, 2017

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

@jyoten

This comment has been minimized.

jyoten commented Apr 1, 2017

@mendaparadarshit, this worked for me too

@jasonwiener

This comment has been minimized.

jasonwiener commented Apr 3, 2017

worked on the first try. thanks @mendaparadarshit!

@mykoma

This comment has been minimized.

mykoma commented Apr 5, 2017

It's worked, thanks.

@ahmedpamin

This comment has been minimized.

ahmedpamin commented Apr 7, 2017

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

@romin771

This comment has been minimized.

romin771 commented Apr 9, 2017

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

@sandalsoft

This comment has been minimized.

sandalsoft commented Apr 9, 2017

@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

@ChauVietnamVTM

This comment has been minimized.

ChauVietnamVTM commented Apr 10, 2017

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

@Behinder

This comment has been minimized.

Behinder commented Apr 10, 2017

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

@pritesh2015

This comment has been minimized.

pritesh2015 commented Apr 10, 2017

It's worked, thanks.

@tomcondon

This comment has been minimized.

tomcondon commented Apr 10, 2017

@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.

@crogers31

This comment has been minimized.

crogers31 commented Apr 13, 2017

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

@psimondk

This comment has been minimized.

psimondk commented Apr 15, 2017

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

@Neeraj204

This comment has been minimized.

Neeraj204 commented Apr 18, 2017

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

@ThrowJojo

This comment has been minimized.

ThrowJojo commented Apr 19, 2017

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

@ThrowJojo

This comment has been minimized.

ThrowJojo commented Apr 19, 2017

@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.

@northkode

This comment has been minimized.

northkode commented Apr 20, 2017

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

@adam187

This comment has been minimized.

adam187 commented Apr 20, 2017

+1 for 10.3.1(14E304) developer disk image

@andremacpereira

This comment has been minimized.

andremacpereira commented Apr 20, 2017

+1 for 10.3.1(14E304) developer disk image

@petscheit

This comment has been minimized.

petscheit commented Apr 20, 2017

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

@charleshkang

This comment has been minimized.

charleshkang commented Apr 21, 2017

thank you @mendaparadarshit, your solution worked for me.

@rerezz

This comment has been minimized.

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!

@superdraw

This comment has been minimized.

superdraw commented Apr 21, 2017

+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...

@coreywiley

This comment has been minimized.

coreywiley commented Apr 22, 2017

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

@mgwiggles

This comment has been minimized.

mgwiggles commented Apr 22, 2017

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!

@DirtyLyle

This comment has been minimized.

DirtyLyle commented Apr 24, 2017

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

This comment has been minimized.

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

@rrainier3

This comment has been minimized.

rrainier3 commented Apr 28, 2017

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

@artemsmikh

This comment has been minimized.

artemsmikh commented Apr 29, 2017

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

@machive

This comment has been minimized.

machive commented May 1, 2017

I just ran into this problem with 14E304. I tried copying in the downloaded 14E269 but I'm still getting the error when trying to run my app on iOS 8.3.1 from Xcode 8.2.1. I shouldn't have upgraded my phone, I did it without thinking!

I can't upgrade to Xcode 8.3 right now because I have a ton of issues with moving to Swift 3.

Any ideas? How did other people fix the 14E304 error by using the 14E269 download?

@yocheved-check-in

This comment has been minimized.

yocheved-check-in commented May 8, 2017

same problem :(
Did you solved it?

@garrincha33

This comment has been minimized.

garrincha33 commented May 8, 2017

@mendaparadarshit - all you need know is this tip to fix issue! thanks for sorting this terribly painful issue

@curiousios

This comment has been minimized.

curiousios commented May 9, 2017

@mendaparadarshit could you please help me with Disk Image 14E304, this is a bit Urgent!!!

@machive

This comment has been minimized.

machive commented May 10, 2017

@yocheved-check-in I'm stuck like @curiousios and can no longer run the app on my phone. I'm going to have to get the app up and running under Xcode 8.3 but the Swift 3 issues are a nightmare so it will take a while.

@qmark

This comment has been minimized.

qmark commented May 14, 2017

Are there any fixes for 14E304? Shouldn't it be available in 8.3.2? Does downgrading Xcode help in any way?

@muescha

This comment has been minimized.

muescha commented May 22, 2017

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

see:

(disclaimer: i don't say that the links above are infected or clean. i just remember why to avoid generally direct downloads)

@muescha

This comment has been minimized.

muescha commented May 22, 2017

better use this solution (with direct download from Apple Developer servers):

https://stackoverflow.com/a/43696751/1930509

@iVarunPatel

This comment has been minimized.

iVarunPatel commented May 28, 2017

Need 10.3.2(14F89) Device support files.

@ducanh841988

This comment has been minimized.

ducanh841988 commented May 29, 2017

Need 10.3.2(14F89) Device support files too.

@linhbt

This comment has been minimized.

linhbt commented Jun 1, 2017

Need 10.3.2(14F89) Device support files too
Thanks a lot!

@Shahbaz-Akram

This comment has been minimized.

Shahbaz-Akram commented Jun 2, 2017

After restarting mac Working fine thanks a lot

@StanislavK

This comment has been minimized.

StanislavK commented Jun 6, 2017

For iOS 11 beta and Xcode 8.3.2 (8E2002):

  • 1.
    sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ (15A5278f)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  • 2.
    Restart your Xcode 8

PS: You must install Xcode 9 beta first.

@MattNewberry

This comment has been minimized.

MattNewberry commented Jun 6, 2017

@StanislavK Have you seen this error relating to Xcode 8.3.2 after installing Beta 9?

Cannot find cdtool at '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/cdtool': Cannot find a simulator runtime for platform <DVTPlatform:0x7fb7fae1c4f0:'com.apple.platform.iphonesimulator':
<DVTFilePath:0x7fb7fae1c480:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform'>>
@mamnun

This comment has been minimized.

mamnun commented Jun 6, 2017

I am seeing the exact same error:

Cannot find cdtool at '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/cdtool': Cannot find a simulator runtime for platform <DVTPlatform:0x7fd67af0a930:'com.apple.platform.iphonesimulator':<DVTFilePath:0x7fd67af0a7c0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform'>>.

@twobitlabs

This comment has been minimized.

twobitlabs commented Jun 7, 2017

Seeing the same error running 8.3.2 after running the Xcode 9 beta. Have tried the symlink, clean, delete Derived Data, restart Xcode, all to no avail.

@mamnun

This comment has been minimized.

mamnun commented Jun 7, 2017

@MattNewberry @twobitlabs I as able to solve it by

  • Delete Xcode
  • Delete command line tools rm -rf /Library/Developer/CommandLineTools
  • Install Xcode manually(not from app store, tried it once didn't solve it). Get it from here
  • Install command line tools manually

Some of the steps may not be necessary, but I just did these to get my xcode to work again

@friendlytoaster

This comment has been minimized.

friendlytoaster commented Jun 7, 2017

@mamnun I just tried doing that, and I'm still getting the error :(

@jeremiah-bouncechat

This comment has been minimized.

jeremiah-bouncechat commented Jun 7, 2017

I too am getting the same error after installing Xcode 9 beta. I've tried deleting both Xcodes, installing from the App Store, and installing manually. The symlink method also does not help.

@bengottlieb

This comment has been minimized.

bengottlieb commented Jun 8, 2017

I followed the steps above and was unable to resolve the problem. Finally, I deleted Xcode 8.3.2 and the beta, then removed /Library/Developer, and re-installed 8.3.2 using the link provided by @mamnun above. This seemed to do the trick. I think that maybe only the CoreSimulator directory of /Library/Developer needed to be removed. I'm back up and running now.

@ropims

This comment has been minimized.

ropims commented Jun 8, 2017

@friendlytoaster Have you succeed to fix this issue (Cannot find cdtool ...)? I've followed mamnum step but still getting same error :(

@mbuchetics

This comment has been minimized.

mbuchetics commented Jun 8, 2017

Had the same problem with cdtool and got it to work by deleting Xcode, then deleting /Library/Developer, also deleting ~/Library/Developer/CoreSimulator (and stopping the CoreSimulatorService, just to be sure). Then I re-installed Xcode 8.3.3 (direct download) and it works. Thanks for the help guys, this was driving me crazy today.

@twobitlabs

This comment has been minimized.

twobitlabs commented Jun 9, 2017

These steps resolved the problem for me as well:
rm -fr /Applications/Xcode.app
rm -fr /Library/Developer
rm -fr ~/Library/Developer/CoreSimulator
Re-install Xcode 8.

Xcode 9 crashes on startup now (UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Error getting value for parameter key 'name' of extension 'Xcode.InterfaceBuilderKit.AppleTVIntegration.Singletons' in plug-in 'com.apple.dt.IDE.IDEInterfaceBuilderAppleTVIntegration'). I imagine re-installing it will resolve that but also make this problem return.

@ropims

This comment has been minimized.

ropims commented Jun 9, 2017

Thank you @twobitlabs! I've followed you steps and succeed to run Xcode 8. I've removed Xcode 9 for now. Too much trouble....

@mbuchetics

This comment has been minimized.

mbuchetics commented Jun 9, 2017

I also can't get the Xcode 9 beta to work again after doing all these steps. Re-installing does not help. Have any of you fixed that as well?

@brendan09

This comment has been minimized.

brendan09 commented Jun 9, 2017

• Removed Xcode 9
• Followed @twobitlabs steps
• Stopped core simulator service
• Reinstalled Xcode 8 from the Mac App Store

And I was able to use Xcode 8 again without encountering the error.

@mbuchetics

This comment has been minimized.

mbuchetics commented Jun 9, 2017

Anyone able to get Xcode 9 to run again? I deleted the /Library/Developer folder but now Xcode 9 can't find the CoreSimulator.framework in Library/Developer/PrivateFrameworks anymore. Re-installing doesn't help, the /Library/Developer folder stays empty. How did the framework get there in the first place? I uninstalled all Xcode versions and re-installed them but to no avail.

@jhowlin

This comment has been minimized.

jhowlin commented Jun 10, 2017

Same problem. After running Xcode 9 for a bit, project fails to compile under Xcode 8. Can anyone explain what the actual problem is here? I suspect Xcode 9 modified some shared state with Xcode 8 (set a path, overwrote a file, etc.). But I've tried deleting and reinstalling to no avail.

@jeremyhu

This comment has been minimized.

jeremyhu commented Jun 10, 2017

Those of you with cdtool errors in Xcode 8, I suspect you installed the iOS 10.3 Simulator runtime from Xcode 9. It was discovered this week that this causes a problem with cdtool in Xcode 8.3. You can work around that by moving iOS 10.3.simruntime aside and restarting CoreSimulatorService:

sudo mkdir /Library/Developer/CoreSimulator/Profiles/Runtimes/Backup
sudo mv /Library/Developer/CoreSimulator/Profiles/Runtimes/{,Backup/}iOS 10.3.simruntime
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
Then restart Xcode, Simulator, etc.

Those of you that deleted CoreSimulator.framework and thus cannot run Xcode.app any more can reinstall CoreSimulator.framework with:

installer -pkg /Applications/Xcode-beta.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target /
@mbuchetics

This comment has been minimized.

mbuchetics commented Jun 10, 2017

awesome, thanks @jeremyhu!

@jhowlin

This comment has been minimized.

jhowlin commented Jun 11, 2017

@jeremyhu That works, thanks! Excellent job on Xcode 9!

@StanislavK

This comment has been minimized.

StanislavK commented Jun 11, 2017

@MattNewberry Hm, works fine for me (even now with new version 8.3.3 (8E3004b)).
Please see note from @jeremyhu.

@NayakSaurabh

This comment has been minimized.

NayakSaurabh commented Jun 14, 2017

Application was perfectly fit and running on simulator when I had sdk 8.3 and deployment target was 8.3. I was using xcode 6.3

I have updated with XCode 8.3.2, so using IOS SDK 10.3 and deployment target I have tried 8.3, 9.0, 9.3, 10.0, 10.3. When I run the application on simulator it is not fit correctly on view. There is a right side space, it looks like not align properly in right margin.

Can anyone have solution for this?

@MattHofmann

This comment has been minimized.

MattHofmann commented Jun 15, 2017

@jeremyhu Thank you!

@civilordergone

This comment has been minimized.

civilordergone commented Jun 17, 2017

Need img for iOS 10.3.2

@animeshp

This comment has been minimized.

animeshp commented Jun 20, 2017

Thank you very much @jeremyhu!

@Izakc

This comment has been minimized.

Izakc commented Jul 6, 2017

Need img for iOS 10.3.2

@gewill

This comment has been minimized.

gewill commented Jul 9, 2017

For Xcode 9 beta 2:
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5304f\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

@nicnilov

This comment has been minimized.

nicnilov commented Jul 14, 2017

XCode 8.2.1, iOS 10.3.2 (14F89)

Took @mendaparadarshit's file, placed the 10.3 (14E269) directory inside /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ and renamed it to 10.3 (14F89).

Restarted XCode, reconnected the device, was able to run on device. Thanks @mendaparadarshit!

@doctormobius

This comment has been minimized.

doctormobius commented Jul 22, 2017

I've just done the same renaming trick as @nicnilov above, using the same Xcode 8.2.1 and iOS 10.3.2 (14F89).

I can complete the Build process successfully now... thanks @mendaparadarshit

@danielgalasko

This comment has been minimized.

danielgalasko commented Aug 1, 2017

For Xcode 9 beta 4

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5327g\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@hujunfeng

This comment has been minimized.

hujunfeng commented Aug 9, 2017

Xcode 9 beta 5

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5341e\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
@khochora

This comment has been minimized.

khochora commented Aug 9, 2017

This worked perfect. I have a late 09 Mini and a 5S, and i followed the steps made sure to reboot both devices just to be safe and it went smooth like butter, Thanks very much from a broke ninja. +1

@Legoless

This comment has been minimized.

Legoless commented Aug 21, 2017

For Xcode Beta 6:

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5361a\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
@StanislavK

This comment has been minimized.

StanislavK commented Sep 19, 2017

ln -s /Applications/Xcode9GM.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A372\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  • where Xcode9GM is your renamed GM version of Xcode9 (build 9A235), i.e. put your name there

PS: Use wisely

@dharmeshrchauhan

This comment has been minimized.

dharmeshrchauhan commented Sep 22, 2017

Wonderful trick...
I am able to use IOS 10.3 device from Xcode 8.1 with following command:

ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.3\ (14E269)/ /XCodes/XCode8.1/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
MacBook-Pro:~ dharmesh$ ls /XCodes/XCode8.1/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

@drunknbass

This comment has been minimized.

drunknbass commented Oct 16, 2017

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.1\ (15B5078b) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

@Bubcho

This comment has been minimized.

Bubcho commented Oct 18, 2017

Hey guys,
Does anybody know where can I get iOS Simulator runtime 10.3.3 from? I have the latest Xcode 9.0.1, but it lacks a 10.3.3 simulator and the latest I can download from the Components tab of Xcode's Preferences is 10.3.1. I'm in need of a 10.3.3 simulator because my client has a bug that occurs only on iPhone 7 with iOS 10.3.3. Any help would be much appreciated!

@drunknbass

This comment has been minimized.

drunknbass commented Nov 12, 2017

ln -s "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.2 (15C5097c)" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/"

@steipete

This comment has been minimized.

Owner

steipete commented Feb 2, 2018

Still works with Xcode 9.3b1 :)

@GeneralUSA

This comment has been minimized.

GeneralUSA commented Feb 13, 2018

You guys are amazing! Thank you soooooo very much. I new that I new that I did not want to update my phone to 10.3, but it kept pestering me and the day I needed it in Xcode 8.2 was the day I updated and bam, my new beginnings journey to mobile dev slowed. Thanks guys, and very special thanks to @mendaparadarshit. Your posting at http://betamode.de/2017/07/10/how-to-develop-ios-10-3-x-apps-in-xcode-8-2-x/ was found after a recommended google search. Thanks Mendaparadarshit.

@steipete

This comment has been minimized.

Owner

steipete commented Feb 17, 2018

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.3\ \(15E5178d\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

Still works for Xcode 9.2 to deploy iOS 11.3 beta! :)

@melwaraki

This comment has been minimized.

melwaraki commented Feb 21, 2018

Is there a directory online that contains zips of iOS supporting files? It'd just be a lot easier to download the zip and add it to the DeviceSupport folder in Xcode rather than downloading Xcode beta every time there's an update.

@drunknbass

This comment has been minimized.

drunknbass commented Mar 12, 2018

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.3\ (15E5201e) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

@aarona-wm

This comment has been minimized.

aarona-wm commented May 7, 2018

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.4\ (15F5061c) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

@stevemoser

This comment has been minimized.

stevemoser commented Jun 20, 2018

What are the new paths for Xcode 10?

@mluisbrown

This comment has been minimized.

mluisbrown commented Jun 21, 2018

For iOS 12 beta 2 / Xcode 10 beta 2:

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ \(16A5308d\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@ben-britten

This comment has been minimized.

ben-britten commented Jul 3, 2018

For iOS 12 beta 3 / Xcode 10 beta 3:

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ \(16A5318d\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@Legoless

This comment has been minimized.

Legoless commented Jul 17, 2018

For iOS 12 beta 4 / Xcode 10 beta 4:

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ \(16A5327d\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@mluisbrown

This comment has been minimized.

mluisbrown commented Jul 30, 2018

For iOS 12 beta 5 / Xcode 10 beta 5:

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ \(16A5339e\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@Legoless

This comment has been minimized.

Legoless commented Aug 13, 2018

iOS 12 beta 7 / Xcode 10 beta 6:

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ \(16A5354b\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@navdeepmahajan

This comment has been minimized.

navdeepmahajan commented Aug 14, 2018

In case you don't have access to /Applications directory then the below article details the steps to make it work:
https://navdeepmahajantechblogs.blogspot.com/2018/08/debug-on-ios-12-device-using-xcode-9.html

@sauravexodus

This comment has been minimized.

sauravexodus commented Sep 28, 2018

In case someone doesn't want to download the entire Xcode 10 and still want to run on iOS 12.

https://github.com/sauravexodus/xcode-9-ios-12-support

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