Can I delete data from iOS DeviceSupport?

余生颓废 提交于 2019-11-28 02:30:44

The ~/Library/Developer/Xcode/iOS DeviceSupport folder is basically only needed to symbolicate crash logs.

You could completely purge the entire folder. Of course the next time you connect one of your devices, Xcode would redownload the symbol data from the device.

I clean out that folder once a year or so by deleting folders for versions of iOS I no longer support or expect to ever have to symbolicate a crash log for.

Jamshed Alam

More Suggestive answer supporting rmaddy's answer as our primary purpose is to delete unnecessary file and folder:

  1. DeviceSupport - You can keep the simulator which log's you may need in future. It's symbolicate crash logs for different device/iOS.

  2. Delete this folder after every few days interval

    ~/Library/Developer/Xcode/DerivedData
    
  3. All your targets are kept in the archived form in Archives folder. Before you decide to delete contents of this folder, here is a warning - if you want to be able to debug deployed versions of your App, you shouldn’t delete the archives

    ~/Library/Developer/Xcode/Archives
    
  4. iOS Device Support folder creates a subfolder with the device version as an identifier when you attach the device. Most of the time it’s just old stuff. Keep the latest version and rest of them can be deleted (if you don’t have an app that runs on 5.1.1, there’s no reason to keep the 5.1.1 directory/directories).

    ~/Library/Developer/Xcode/iOS DeviceSupport
    
  5. Core Simulator folder is familiar for many Xcode users. It’s simulator’s territory; that's where it stores app data. It’s obvious that you can toss the older version simulator folder/folders if you no longer support your apps for those versions. And, it’s safer to use ‘Reset Content and Settings’ option from the menu to delete all of your app data in a Simulator.

    ~/Library/Developer/CoreSimulator 
    
  6. Caches are always safe to delete since they will be recreated as necessary. This isn’t a directory; it’s a file of kind Xcode Project. Delete away!

    ~/Library/Caches/com.apple.dt.Xcode
    
  7. Additionally, Apple iOS device automatically syncs specific files and settings to your Mac every time they are connected to your Mac machine. To be on safe side, it’s wise to use Devices pane of iTunes preferences to delete older backups; you should be retaining your most recent back-ups off course.

    ~/Library/Application Support/MobileSync/Backup
    

I got back about 40GB! For more help go to http://ajithrnayak.com/post/95441624221/xcode-users-can-free-up-space-on-your-mac

As it's not recommended to delete final versions because of the symbolicate crash logs, you can still delete all beta versions as you won't need them. Those are the ones with a longer id after the version number.

See screenshot comparison from 12.3.1 (final) and 12.4 (beta)

Yes, you can delete data from iOS device support by the symbols of the operating system, one for each version for each architecture. It's used for debugging. If you don't need to support those devices any more, you can delete the directory without ill effect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!