You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ios-deploy: Unable to locate DeviceSupport directory #4326
platform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallytoolAffects the "flutter" command-line tool. See also t: labels.
I was attempting to flutter run with xcode 7.2.something and I would see
Starting debug of iPhone 5s (GSM) 'drewwarren’s iPhone' (4127c6ffa53f153512916da5fe2a3afac8d23798) connected through USB...
2016-06-02 11:17:59.787 ios-deploy[4022:2958268] [ !! ] Unable to locate DeviceSupport directory. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown!
Could not install ios/.generated/build/Release-iphoneos/Runner.app on 4127c6ffa53f153512916da5fe2a3afac8d23798.
Error running application on drewwarren’s iPhone.
This says I might not have Xcode installed, but I did. flutter doctor made everything look okay for Xcode.
When I was in this state if I attempted to open FlutterApplication.xcodeproj in Xcode and click the play button I would see Could not find Developer Disk Image.
I get the same issue, but I'm using the latest version of XCode. When I try to run it in XCode, I get a white screen on my device and this in XCode. Weird thing is that it was working the other day.
@smrtsmrf can you check whether you're using Xcode 8.3.3? If so, it appears Xcode has changed the format it uses for the iOS DeviceSupport directory which is causing ios-deploy (one of our dependencies for launching iOS apps on devices) to get confused.
We can see what's in the iOS device support dir via:
ls "$(xcrun --sdk iphoneos --show-sdk-platform-path)/DeviceSupport"
With Xcode 8.3.3, I see:
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:27 10.0/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:29 10.1/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:26 10.2/
drwxrwxr-x 4 cbracken eng 136 26 Apr 19:26 10.3.1 (14E8301)/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:26 8.0/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:28 8.1/
drwxrwxr-x 4 cbracken eng 136 10 May 22:21 8.2/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:27 8.3/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:28 8.4/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:27 9.0/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:26 9.1/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:28 9.2/
drwxrwxr-x 4 cbracken eng 136 2 Feb 07:28 9.3/
Looks like a quick hacky fix is:
cd "$(xcrun --sdk iphoneos --show-sdk-platform-path)/DeviceSupport"
ln -s 10.3.1\ \(14E8301\) 10.3
If you installed Xcode via the App Store (in which case, these files will all be owned by root), you may get a permission denied error and may need to run ln as root:
sudo ln -s 10.3.1\ \(14E8301\) 10.3
Reacted by xster, Aaron, cjkao, Richard Stromer, Naruto TAKAHASHI, Gregor, Mehmet Onur AKKAYA, Davor Peic, Erick Ghaumez, Zijam and 5 more
Thanks @cbracken your solution fixed my 10.3.3 even I added particular subversion. There is more talk about this on ios-deploy repo ios-control/ios-deploy#292
We might want to bump up the priority of this fix. The workaround has 12 thumbs up, and the workaround is still required. Maybe our tool can just make the symlink? Or, print out a link to this bug?
@sethladd We can't autogen the symlink since it requires root privileges but we can definitely output the one-line command to do it. I'll land a doctor check (and run it at build time as well) that outputs this.
I am still having this issue in 1.9.2 with Xcode 9.0.1. My device is running 11.0.3 (15A432).
I have also tried using the solution to add the symlinks but doesn't seem to work for me. Create a symlink for 11.0.3 (15A432) -> 11.0 (15A372)
------ Debug phase ------
Starting debug of 38813d6fae7464bb3f099582ea78ce53955e8632 (N66mAP, iPhone 6s Plus, iphoneos, arm64) a.k.a. 'iPhone' connected through USB...
[ 0%] Looking up developer disk image
[ 95%] Developer disk image mounted successfully
2017-10-30 16:25:46.621 ios-deploy[44705:5930783] [ !! ] Unable to locate DeviceSupport directory with suffix 'Symbols'. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown!
Just as a follow up, if you are having this issue, the files are probably missing from this path:
~/Library/Developer/Xcode/iOS\ DeviceSupport/
If that is the case, which fixed things for me, make sure your phone is attached to your mac and open xcode. The files will automatically appear and things should work.
Reacted by Chris Bracken, Deesha Vora, Daniel Liu, Sam Morrison, Dennis Cornwell, Jimmy Multani, Bryan Killian, Tunde, RAMPAGE CODE, rmawatson and 7 more
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
platform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallytoolAffects the "flutter" command-line tool. See also t: labels.
Activity
smrtsmrf commentedon Jun 9, 2017
I get the same issue, but I'm using the latest version of XCode. When I try to run it in XCode, I get a white screen on my device and this in XCode. Weird thing is that it was working the other day.

cbracken commentedon Jun 13, 2017
@smrtsmrf can you check whether you're using Xcode 8.3.3? If so, it appears Xcode has changed the format it uses for the iOS
DeviceSupportdirectory which is causingios-deploy(one of our dependencies for launching iOS apps on devices) to get confused.Upstream
ios-deployissue is: ios-control/ios-deploy#292We can see what's in the iOS device support dir via:
With Xcode 8.3.3, I see:
Looks like a quick hacky fix is:
If you installed Xcode via the App Store (in which case, these files will all be owned by root), you may get a permission denied error and may need to run
lnas root:[-]Error message misleading when xcode needs updating[/-][+]ios-deploy: Unable to locate DeviceSupport directory[/+]smrtsmrf commentedon Jun 13, 2017
@cbracken thanks, that did the trick. 👍
cbracken commentedon Jun 13, 2017
Thanks for confirming! Will keep this issue open for reference until a fix goes into ios-deploy.
davorpeic commentedon Aug 2, 2017
Thanks @cbracken your solution fixed my 10.3.3 even I added particular subversion. There is more talk about this on ios-deploy repo ios-control/ios-deploy#292
dp
sethladd commentedon Sep 3, 2017
We might want to bump up the priority of this fix. The workaround has 12 thumbs up, and the workaround is still required. Maybe our tool can just make the symlink? Or, print out a link to this bug?
cbracken commentedon Sep 4, 2017
@sethladd We can't autogen the symlink since it requires root privileges but we can definitely output the one-line command to do it. I'll land a doctor check (and run it at build time as well) that outputs this.
cbracken commentedon Sep 6, 2017
ios-deploy 1.9.2 was released today and includes a fix for this issue. I've added a doctor check to bump to that version.
blackdynamo commentedon Oct 30, 2017
I am still having this issue in 1.9.2 with Xcode 9.0.1. My device is running 11.0.3 (15A432).
I have also tried using the solution to add the symlinks but doesn't seem to work for me. Create a symlink for 11.0.3 (15A432) -> 11.0 (15A372)
blackdynamo commentedon Nov 2, 2017
Just as a follow up, if you are having this issue, the files are probably missing from this path:
If that is the case, which fixed things for me, make sure your phone is attached to your mac and open xcode. The files will automatically appear and things should work.
sam-parks commentedon Feb 14, 2020
I'm using XCode 11.3.1 and I'm still getting this issue. I checked this path:
But the files were there. What else could be causing this issue?
nwainwri commentedon Apr 28, 2020
Same XCode, also having the same issue. Files are also there.
How does one fix this issue?
vHanda commentedon Oct 16, 2020
I
I encountered the same issue and managed to fix it by updating to the latest version of ios-deploy - https://github.com/ios-control/ios-deploy
github-actions commentedon Aug 11, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.