Skip to content

xcdevice is generating a dyld_shared_cache_arm64 recovered file every ~30 seconds while IDE open #56826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
seekcx opened this issue May 10, 2020 · 66 comments · Fixed by #58137
Closed
Labels
customer: crowd Affects or could affect many people, though not necessarily a specific customer. found in release: 1.17 Found to occur in 1.17 found in release: 1.18 Occurs in 1.18 P0 Critical issues such as a build break or regression platform-mac Building on or for macOS specifically t: xcode "xcodebuild" on iOS and general Xcode project management tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@seekcx
Copy link

seekcx commented May 10, 2020

Steps to Reproduce

  1. Open Android Studio or VSCode,Make sure the flutter process is running.
  2. Wait for the hard drive to become full.
  3. Restart your computer.
  4. Open the trash.

Logs

null

Screenshot

image

[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.4 19E287, locale zh-Hans-CN)
    • Flutter version 1.17.0 at /Users/abel/develop/flutter
    • Framework revision e6b34c2b5c (8 days ago), 2020-05-02 11:39:18 -0700
    • Engine revision 540786dd51
    • Dart version 2.8.1


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/abel/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/abel/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[!] IntelliJ IDEA Ultimate Edition (version 2019.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.45.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.10.1

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.
@trinicoconutman
Copy link

I am having the same exact problem. I am using the latest flutter and VS Code. It takes about an hour to burn through 100 GB on my MacbookAir 2020.

@seekcx
Copy link
Author

seekcx commented May 11, 2020

I think I may have solved this problem.

Before there was a problem, I used CleanMyMac to clean up some files.
I wonder if some temporary files have been cleaned up, and Flutter cannot create these files properly.

I opened XCode and observed the hard disk space, which was reduced by about 4G, no longer.

Open Android Studio or VSCode again, keep the Flutter process running, and the hard disk space will not continue to decrease.

The problem seems to be solved.

@trinicoconutman
Copy link

Hmm, i'm not quite following what the solution was. Did running XCode fix something? Just running VSCode and having the flutter process running seems to be the same process that had the issue before. What changed?

@seekcx
Copy link
Author

seekcx commented May 11, 2020

I don't know the details, but after I run XCode, the problem is indeed solved.

If the problem is not solved, here is another method you can try.

@VladyslavBondarenko
Copy link

@trinicoconutman
could you provide your flutter doctor -v and investigate what files/directories start to consume so much space?
are you experiencing this with any app? with another flutter version?

@VladyslavBondarenko VladyslavBondarenko added the in triage Presently being triaged by the triage team label May 11, 2020
@VladyslavBondarenko
Copy link

@trinicoconutman
consider to file a separate issue with provided info about your case.
@seekcx
I'm going to closed the current one, since it's solved and hardly workable

@VladyslavBondarenko VladyslavBondarenko removed the in triage Presently being triaged by the triage team label May 11, 2020
@trinicoconutman
Copy link

Ok, opening XCode worked. Thanks guys.

@XinwenCheng
Copy link

XinwenCheng commented May 13, 2020

I faced this very issue, and problem was temporarily solved after I ran XCode, but once I flutter run to iOS device, it happened again.

flutter doctor -v

[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.14.6 18G4032, locale en-CN)
    • Flutter version 1.17.0 at /Volumes/Transcend/Development/flutter
    • Framework revision e6b34c2b5c (11 days ago), 2020-05-02 11:39:18 -0700
    • Engine revision 540786dd51
    • Dart version 2.8.1

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Volumes/Transcend/Development/AndroidSDK
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.9.0

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] VS Code (version 1.45.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.10.1

[✓] Connected device (1 available)
    • SM G9500 • 10.10.201.121:5555 • android-arm64 • Android 9 (API 28)

• No issues found!

@wavecommander
Copy link

wavecommander commented May 13, 2020

I originally posted this on issue #56270, but it was marked off-topic.
I believe this is a more correct spot.

I also experienced my disk being filled up completely by "A Document Being Saved by xcdevice #" files upon attaching an iOS device.

For context, I installed Flutter on macOS 10.14, then upgraded to macOS 10.15, the latest Xcode, and the latest Flutter 1.17 using flutter upgrade.

Reinstalling Xcode did not fix the problem for me.
I think this was happening because I did not update CocoaPods along with all of the other tools.
Regardless, I played it safe and 'reinstalled' Flutter as well as CocoaPods.

These steps solved my problem:

  • Delete Flutter framework directory
  • Uninstall CocoaPods completely
  • Clone Flutter repo from Github stable branch
  • Run flutter doctor (make sure you still have it in your path)
  • Install CocoaPods when prompted with sudo gem install cocoapods
  • Run pod setup after CocoaPods finished installing

@jmagman jmagman reopened this May 13, 2020
@jmagman
Copy link
Member

jmagman commented May 13, 2020

xcdevice is the Xcode command line tool Flutter uses to figure out which devices are attached to your host machine. I'm not sure how CocoaPods could be related.

I'm guessing the dyld_shared_cache_arm64 are something xcdevice is writing to tmp (maybe a copy of ~/Library/Developer/Xcode/iOS\ DeviceSupport/<>/Symbols/System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64), but the process is getting killed before it can be deleted? Or perhaps it never properly cleans up this file and Flutter is running it so often (every time your app runs) that it's just now noticeable. Seems like Xcode knows how to clean up those files and a launch of Xcode temporarily "fixes" it.

@wavecommander
Copy link

wavecommander commented May 13, 2020

@jmagman My hunch is that the process cleans up normally, but something is making it crash, leaving these files midway through, and the invoker is simply ignoring the crash, trying again and again in a loop while the device is connected.
I didn't have to run my app for this to occur, the moment I plugged it in, and the plugins and tools etc. are trying to communicate with the device, that is when it started filling my disk.

@jmagman
Copy link
Member

jmagman commented May 13, 2020

In that case there's probably nothing Flutter can do about it. Xcode 11.5 Beta 2 is out, maybe the crash is fixed there?

Do you see xcdevice crashes in Console's Crash Report or Diagnostic Reports?

@wavecommander
Copy link

wavecommander commented May 13, 2020

This is my Console system.log when searching for xcdevice:

May 13 19:09:08 BenBoyleMBP com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.xcdevice.21905): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice, error = 2: No such file or directory
May 13 19:09:45 BenBoyleMBP com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.xcdevice.21946): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice, error = 2: No such file or directory
May 13 19:10:21 BenBoyleMBP com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.xcdevice.21986): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice, error = 2: No such file or directory
May 13 19:10:57 BenBoyleMBP com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.xcdevice.22025): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice, error = 2: No such file or directory
May 13 19:11:34 BenBoyleMBP com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.xcdevice.22063): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice, error = 2: No such file or directory
May 13 19:12:10 BenBoyleMBP com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.xcdevice.22098): Failed to bootstrap path: path = /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice, error = 2: No such file or directory

There are many many more reports identical to this.
But these are being reported right now, so there is still something odd going on.

@jmagman
Copy link
Member

jmagman commented May 13, 2020

  1. Is xcode-select --print-path /Applications/Xcode.app/Contents/Developer?
  2. Does /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice exist?
  3. Does xcrun xcdevice list produce the boostrap error log? Does it work at all?
  4. In Xcode does opening Windows > Devices and Simulators show the attached devices? Any errors in there?

@wavecommander
Copy link

wavecommander commented May 13, 2020

  1. Is xcode-select --print-path /Applications/Xcode.app/Contents/Developer? Yes.
  2. Does /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice exist? Yes. Calling it returns 'No command provided.'
  3. Does xcrun xcdevice list produce the boostrap error log? Does it work at all? When running it in the terminal, it produces a valid output:
$ xcrun xcdevice list
[
  {
    "simulator" : true,
    "operatingSystemVersion" : "13.4.1 (17E8260)",
    "available" : true,
    "platform" : "com.apple.platform.iphonesimulator",
    "modelCode" : "iPad8,9",
    "identifier" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "architecture" : "x86_64",
    "modelUTI" : "com.apple.ipad-pro-11-2nd-1",
    "modelName" : "iPad Pro (11-inch) (2nd generation)",
    "name" : "iPad Pro (11-inch) (2nd generation)"
  },
  {
    "simulator" : true,
    "operatingSystemVersion" : "13.4.1 (17E8260)",
    "available" : true,
    "platform" : "com.apple.platform.iphonesimulator",
    "modelCode" : "iPad6,4",
    "identifier" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "architecture" : "x86_64",
    "modelUTI" : "com.apple.ipad-pro-9point7-a1674-b9b7ba",
    "modelName" : "iPad Pro (9.7-inch)",
    "name" : "iPad Pro (9.7-inch)"
  },
  {
    "simulator" : true,
    "operatingSystemVersion" : "13.4.1 (17E8260)",
    "available" : true,
    "platform" : "com.apple.platform.iphonesimulator",
    "modelCode" : "iPad8,12",
    "identifier" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "architecture" : "x86_64",
    "modelUTI" : "com.apple.ipad-pro-12point9-4th-1",
    "modelName" : "iPad Pro (12.9-inch) (4th generation)",
    "name" : "iPad Pro (12.9-inch) (4th generation)"
  },
  {
    "simulator" : false,
    "operatingSystemVersion" : "13.4.1 (17E262)",
    "interface" : "usb",
    "available" : true,
    "platform" : "com.apple.platform.iphoneos",
    "modelCode" : "iPad7,4",
    "identifier" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "architecture" : "arm64",
    "modelUTI" : "com.apple.ipad-pro-10point5-a1709-1",
    "modelName" : "iPad Pro (10.5-inch) (Model A1709, A1852)",
    "name" : "Ben’s iPad"
  }
]
  1. In Xcode does opening Windows > Devices and Simulators show the attached devices? Any errors in there?
    The attached device information is shown. There is one crash log for 'Runner', but I think it is referring to me stopping the debug run manually.

I should note, the console bootstrap errors occur only if IntelliJ, or VS Code, or Android Studio with the Flutter plugin/extension is running. The errors occur regardless of whether or not the device is plugged in if one of those editors are open. It happens roughly every 30s.

Apologies but I think this is getting off topic as well since I am no longer experiencing the aggressive disk usage, but am experiencing a loosely related problem.

EDIT: I bit the bullet and reinstalled macOS. Everything is working now.
Sorry for not being more help; hope this can be fixed.

@Tobisaninfo
Copy link

I have the same problem, of a full disk after some hours. I try to understand the situation, in which this issue occurs. I'm using:

  • macOS 10.15.4
  • Xcode 11.4.1
  • Flutter 1.17.0
  • Here is the output of flutter doctor -v flutter_doc.txt
  • My xcode commandline tools are also properly installed

The cache files will be created in the following situations:

  • Android Studio is open, simulator is open, no flutter app is running
  • Android Studio is open, device is connected, no flutter app is running

The cache files are not created then using Xcode without flutter or android studio. So it seems to be a bug in combination with the flutter toolchain.

This issue occurs on my mac since yesterday and I experience it after every reboot.

@TahaTesser TahaTesser added platform-mac Building on or for macOS specifically t: xcode "xcodebuild" on iOS and general Xcode project management tool Affects the "flutter" command-line tool. See also t: labels. labels May 14, 2020
@fnicastri

This comment has been minimized.

@jmagman jmagman changed the title dyld_shared_cache_arm64 crammed my hard drive. xcdevice is generating a dyld_shared_cache_arm64 recovered file every ~30 seconds while IDE open May 15, 2020
@DanTup
Copy link
Contributor

DanTup commented May 18, 2020

I've had this come up a few times in the Dart-Code Discord and issue tracker recently

Someone in Discord found this this post about it on StackExchange:

https://apple.stackexchange.com/questions/387634/temporary-dyld-shared-cache-taking-a-lot-of-space/387843#387843

@jmagman
Copy link
Member

jmagman commented May 18, 2020

Hm, when @benbdevd was reproducing there wasn't a "Copying cache files from device" message.

In Xcode does opening Windows > Devices and Simulators show the attached devices? Any errors in there?
The attached device information is shown. There is one crash log for 'Runner', but I think it is referring to me stopping the debug run manually.

I just erased my iPhone and I wasn't able to reproduce this. For anyone hitting this, can we get the output of:

xcrun xcdevice list

I'm hoping to see an error about that cache file, or something about symbols.

@MarkStepp
Copy link

xcrun xcdevice list

[ { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad4,2", "identifier" : "FCBFF3B7-16FD-4B9E-92BB-3E8198FC2C9F", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-air-a1475-d7d9d8", "modelName" : "iPad Air", "name" : "iPad Air" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,1", "identifier" : "21AA2DF8-6117-472D-9780-E31AB90FADD0", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-11-1", "modelName" : "iPhone 11", "name" : "iPhone 11" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad7,1", "identifier" : "3AC705C5-86F6-4895-B71B-524F0435EFF0", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-pro-a1670-1", "modelName" : "iPad Pro (12.9-inch) (2nd generation)", "name" : "iPad Pro (12.9-inch) (2nd generation)" }, { "simulator" : true, "operatingSystemVersion" : "6.2 (17T256)", "available" : true, "platform" : "com.apple.platform.watchsimulator", "modelCode" : "Watch4,4", "identifier" : "911421BD-55B2-465F-AA2D-4BE3BFBEA354", "architecture" : "i386", "modelUTI" : "com.apple.watch-series4-1", "modelName" : "Apple Watch Series 4 - 44mm", "name" : "Apple Watch Series 4 - 44mm" }, { "simulator" : true, "operatingSystemVersion" : "6.2 (17T256)", "available" : true, "platform" : "com.apple.platform.watchsimulator", "modelCode" : "Watch4,3", "identifier" : "68C826DD-F775-433E-AF49-73A2D690EE67", "architecture" : "i386", "modelUTI" : "com.apple.watch-series4-1", "modelName" : "Apple Watch Series 4 - 40mm", "name" : "Apple Watch Series 4 - 40mm" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad7,12", "identifier" : "E0D9A66E-58F7-44EB-A50F-AB0F8A7B06A8", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-7-wwan-1", "modelName" : "iPad (7th generation)", "name" : "iPad (7th generation)" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,6", "identifier" : "1AD761B4-E4ED-433B-A719-FEEEF0358D86", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-x-1", "modelName" : "iPhone X", "name" : "iPhone X" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone11,4", "identifier" : "DDCD45B4-412F-45BA-813F-01589574E59B", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-xs-max-1", "modelName" : "iPhone Xs Max", "name" : "iPhone Xs Max" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad7,3", "identifier" : "53126C28-5098-4FD4-982C-F8933FC01BAC", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-pro-10point5-a1701-1", "modelName" : "iPad Pro (10.5-inch)", "name" : "iPad Pro (10.5-inch)" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad8,5", "identifier" : "9741AF86-3334-48E3-A8E2-1DB7DB6C91E3", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-pro-12point9-1", "modelName" : "iPad Pro (12.9-inch) (3rd generation)", "name" : "iPad Pro (12.9-inch) (3rd generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,5", "identifier" : "F4C9A459-7F92-496D-889E-8C13E9804835", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-8-plus-2", "modelName" : "iPhone 8 Plus", "name" : "iPhone 8 Plus" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone6,1", "identifier" : "18A7F4C1-E033-4D77-8594-5B9FA88DFC20", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-5s-a1453-d4c5b3", "modelName" : "iPhone 5s", "name" : "iPhone 5s" }, { "simulator" : true, "operatingSystemVersion" : "6.2 (17T256)", "available" : true, "platform" : "com.apple.platform.watchsimulator", "modelCode" : "Watch5,3", "identifier" : "3DDB732A-BD16-4CB0-8AC1-7A40A21BE2A3", "architecture" : "i386", "modelUTI" : "com.apple.watch-series5-1", "modelName" : "Apple Watch Series 5 - 40mm", "name" : "Apple Watch Series 5 - 40mm" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone11,8", "identifier" : "DD394283-38CC-4807-9176-1C24451AA2DB", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-xr-1", "modelName" : "iPhone Xʀ", "name" : "iPhone Xʀ" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad11,3", "identifier" : "59A7B754-8B69-4256-B1A4-DA0B726DC363", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-air3-wifi-1", "modelName" : "iPad Air (3rd generation)", "name" : "iPad Air (3rd generation)" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone7,1", "identifier" : "9AEFCDB1-4CFB-4CAB-9392-961257753C3F", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-6-plus-b4b5b9", "modelName" : "iPhone 6 Plus", "name" : "iPhone 6 Plus" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone7,2", "identifier" : "9B11DDE4-975E-4755-B8BA-1B36FDDC19CC", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-6-b4b5b9", "modelName" : "iPhone 6", "name" : "iPhone 6" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone8,2", "identifier" : "93E16C8F-0FB2-4BAC-9987-6C0570203C78", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-6s-plus-b9b7ba", "modelName" : "iPhone 6s Plus", "name" : "iPhone 6s Plus" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad5,4", "identifier" : "33307AB3-6E5B-479D-87E4-48BE46F18B0A", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-air2-a1567-b4b5b9", "modelName" : "iPad Air 2", "name" : "iPad Air 2" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone11,2", "identifier" : "0A8305FE-5E3D-4109-B53E-A57B16E8198F", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-xs-1", "modelName" : "iPhone Xs", "name" : "iPhone Xs" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,4", "identifier" : "BDB641FA-A85A-4E04-A623-A812D19387E0", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-8-2", "modelName" : "iPhone 8", "name" : "iPhone 8" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone9,1", "identifier" : "01540E9C-46CA-4946-B0F8-92D87580A96D", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-7-1", "modelName" : "iPhone 7", "name" : "iPhone 7" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17L255)", "available" : true, "platform" : "com.apple.platform.appletvsimulator", "modelCode" : "AppleTV6,2", "identifier" : "720633BC-2C24-4158-B041-360A5A1BC408", "architecture" : "x86_64", "modelUTI" : "com.apple.apple-tv-4k", "modelName" : "Apple TV 4K", "name" : "Apple TV 4K" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone9,2", "identifier" : "CDC82209-7AB1-40B3-B1E4-EC36698D3A3C", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-7-plus-1", "modelName" : "iPhone 7 Plus", "name" : "iPhone 7 Plus" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad8,9", "identifier" : "E07F9DFD-05D6-4044-95C6-1CBD6BDC89E5", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-pro-11-2nd-1", "modelName" : "iPad Pro (11-inch) (2nd generation)", "name" : "iPad Pro (11-inch) (2nd generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17L255)", "available" : true, "platform" : "com.apple.platform.appletvsimulator", "modelCode" : "AppleTV5,3", "identifier" : "07FA69D9-0798-4349-B45E-DD45C232D76A", "architecture" : "x86_64", "modelUTI" : "com.apple.apple-tv-4", "modelName" : "Apple TV", "name" : "Apple TV" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,5", "identifier" : "6E0AC254-BDEB-4C7F-9449-DE0DDC63B6DF", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-11-pro-max-1", "modelName" : "iPhone 11 Pro Max", "name" : "iPhone 11 Pro Max" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17L255)", "available" : true, "platform" : "com.apple.platform.appletvsimulator", "modelCode" : "AppleTV6,2", "identifier" : "FCF98006-D4BF-42FA-95FB-FDB0474BE19D", "architecture" : "x86_64", "modelUTI" : "com.apple.apple-tv-4k", "modelName" : "Apple TV 4K (at 1080p)", "name" : "Apple TV 4K (at 1080p)" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad6,4", "identifier" : "56F9E130-351E-4264-AABD-A2203225506A", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-pro-9point7-a1674-b9b7ba", "modelName" : "iPad Pro (9.7-inch)", "name" : "iPad Pro (9.7-inch)" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,4", "identifier" : "B8F4005E-E426-456C-8CB0-E0BD8AE1D946", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-8-2", "modelName" : "iPhone 8", "name" : "iPhone 8" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone8,4", "identifier" : "0956AB9F-7CC9-49E4-805E-4F41B5FF42AB", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-se-a1662-aeb1b8", "modelName" : "iPhone SE", "name" : "iPhone SE" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone8,1", "identifier" : "A5E1C925-743F-45E6-832A-F1561F0E55B6", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-6s-b9b7ba", "modelName" : "iPhone 6s", "name" : "iPhone 6s" }, { "simulator" : true, "operatingSystemVersion" : "6.2 (17T256)", "available" : true, "platform" : "com.apple.platform.watchsimulator", "modelCode" : "Watch5,4", "identifier" : "7F5C7C49-019E-4050-8F8E-C6E338311F1F", "architecture" : "i386", "modelUTI" : "com.apple.watch-series5-1", "modelName" : "Apple Watch Series 5 - 44mm", "name" : "Apple Watch Series 5 - 44mm" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad7,6", "identifier" : "0455E6A0-AAB0-4A9F-B74A-0C09F8C150DF", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-6-a1954-1", "modelName" : "iPad (6th generation)", "name" : "iPad (6th generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,3", "identifier" : "539633F2-17D1-441E-A891-D2A6B0323A25", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-11-pro-1", "modelName" : "iPhone 11 Pro", "name" : "iPhone 11 Pro" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad6,4", "identifier" : "C1442251-287B-4A4B-ADCA-1CAE607C0F4B", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-pro-9point7-a1674-b9b7ba", "modelName" : "iPad Pro (9.7-inch)", "name" : "iPad Pro (9.7-inch)" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,5", "identifier" : "CE72E35E-BAFE-4153-AFB5-8CCA4788AF4B", "architecture" : "x86_64", "modelUTI" : "com.apple.iphone-8-plus-2", "modelName" : "iPhone 8 Plus", "name" : "iPhone 8 Plus" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad6,12", "identifier" : "1F556CE7-1AB5-4FAE-9B9B-B090C153AB1A", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-gen5-a1823-1", "modelName" : "iPad (5th generation)", "name" : "iPad (5th generation)" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad6,8", "identifier" : "7D75C1F6-11F8-4CD6-A0AE-987CE1BF773C", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-pro-a1652-b4b5b9", "modelName" : "iPad Pro (12.9-inch)", "name" : "iPad Pro (12.9-inch)" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad8,1", "identifier" : "0874D4EC-E9E1-4F89-A7D4-93788E96CFA7", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-pro-11-1", "modelName" : "iPad Pro (11-inch) (1st generation)", "name" : "iPad Pro (11-inch) (1st generation)" }, { "simulator" : true, "operatingSystemVersion" : "12.2 (16E226)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad11,3", "identifier" : "43363C9B-1D42-4094-B9D4-19914ABA06CD", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-air3-wifi-1", "modelName" : "iPad Air (3rd generation)", "name" : "iPad Air (3rd generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.4 (17E255)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad8,12", "identifier" : "B465F77B-18D7-48BE-BDBF-898556BD371B", "architecture" : "x86_64", "modelUTI" : "com.apple.ipad-pro-12point9-4th-1", "modelName" : "iPad Pro (12.9-inch) (4th generation)", "name" : "iPad Pro (12.9-inch) (4th generation)" } ]

@jmagman
Copy link
Member

jmagman commented Jun 8, 2020

#58137 made it into 1.19.0-3.0.pre, which is available in the dev channel.

Note this fix should avoid the issue in the first place, not clean up the excessive Xcode caches from your hard drive.

@tapizquent

This comment has been minimized.

@jmagman

This comment has been minimized.

@tapizquent

This comment has been minimized.

@jmagman

This comment has been minimized.

@DanTup
Copy link
Contributor

DanTup commented Jun 11, 2020

I'm not sure where Xcode is actually putting those files; I was never able to reproduce this issue.

If it helps, in Dart-Code/Dart-Code#2460 they were in a temp folder (and cleaned up on reboot):

/private/var/folders/xb/j4_1kvcx0x1679jq7slr5vvm0000gn/T/TemporaryItems/(A Document Being Saved By xcdevice)/dyld_shared_cache_arm64

@lajz
Copy link

lajz commented Jun 14, 2020

@jmagman thank you for the fix. Is there a rough time frame for when this will be available in more stable channels?

@kf6gpe kf6gpe added found in release: 1.17 Found to occur in 1.17 found in release: 1.18 Occurs in 1.18 cp: 1.17 and removed P2 labels Jun 15, 2020
@pcsosinski
Copy link

beta is 1.19.0-4.1.pre, so this is fixed on beta channel

@psimondk

This comment has been minimized.

@Shoshin23

This comment has been minimized.

@pcsosinski
Copy link

@jmagman this looks to require a manual merge into 1.17 (branch: flutter-1.17-candidate.3)

can you take a look at what that merge looks like? seems like most of the conflicts are in tests.

@jmagman
Copy link
Member

jmagman commented Jun 17, 2020

@pcsosinski PR at #59695.

@sstadtl
Copy link

sstadtl commented Jun 17, 2020

@Shoshin23
Have you tried opening Xcode => Window => Devices => let the sync finish => reboot ?
that fixed it for me
(and all dev-devices updated to the latest ios version)

@psimondk

This comment has been minimized.

@jmagman
Copy link
Member

jmagman commented Jun 17, 2020

This issue was specifically tracking the xcdevice dyld_shared_cache_arm64 generation. There's a PR at #59695 to hotfix to stable.

If you are seeing another issue (related to Android, doctor not finding simctl, whatever), please file it so we can take a look. Locking for now to avoid noise.

@flutter flutter locked as resolved and limited conversation to collaborators Jun 17, 2020
@pcsosinski
Copy link

fixed in 1.17.4

@flutter-triage-bot flutter-triage-bot bot added P0 Critical issues such as a build break or regression and removed P1 labels Jun 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer: crowd Affects or could affect many people, though not necessarily a specific customer. found in release: 1.17 Found to occur in 1.17 found in release: 1.18 Occurs in 1.18 P0 Critical issues such as a build break or regression platform-mac Building on or for macOS specifically t: xcode "xcodebuild" on iOS and general Xcode project management tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging a pull request may close this issue.