5 ms·
Xcode is a huge offender, at least for me. At 36GB, not only is it the largest application in my Applications folder (it is larger than all my other application
by ryandrake 4y ago
Xcode is a huge offender, at least for me. At 36GB, not only is it the largest application in my Applications folder (it is larger than all my other applications combined), it also litters /Library/Developer with about 9GB of shit (mostly simulator runtimes), and then litters ~/Library/Developer with 33GB of shit (mostly caches). Almost 80GB disk footprint... just to develop software?
- ChrisMarshallNY 4y agoI have a sidebar alias to my DerivedData directory (and I have Xcode set up to use it for everything). I'll flush it, from time to time. I may also delete old archives. I have hundreds of them.
- saagarjha 4y agoI would recommend being cautious about clearing old archives, as they will have symbols to help you analyze crash reports and such.
- ChrisMarshallNY 4y agoGood point. I tend to keep the last month of releases, and whatever is currently on the store. I find those symbols to be kinda worthless, though. My best tool for diagnosing a crash report is a Ouija board.
- saagarjha 4y agoSymbols are a godsend when dealing with difficult crash reports. Have you ever tried walking through the process of analyzing one with an expert? It's a great way to level up your diagnosis skills.
- nicky0 4y agoI usually just Google "how to symbolicate crash report" because I forgot how to do it it again.
- saagarjha 4y agoSymbolicating a crash report is annoying but mostly mechanical (fwiw you can open them in Xcode and it will pull in all the dSYMs for you). Reading a crash report is an art.
- ChrisMarshallNY 4y agoThat’s a good suggestion. Frankly, it’s not been much of an issue. I tend to be super-anal about Quality, and post-release crashes are rare as hen’s teeth; which makes the ones that do happen, more important to diagnose. I usually get a general idea of where the crash happens, and scanning the source, has always shown me the issue.
- alex_suzuki 4y agoYou probably know this, but relying on your local machine and storage for this is a bad idea for production apps. There are a ton of services that handle all the “mechanical” stuff for you (e.g. AppCenter, ex-HockeyApp), and you can just look at symbolicated crash in your browser.
- saagarjha 4y agoFor production apps I would centralize symbols, yes. But I have a strong disdain for crash reporting services, which are typically authored by people who are designing for aggregating crashes and showing pretty charts rather than really getting deep into the actual log itself. Most have pitifully less information than an actual crash log would–often missing thread state, exception codes, and memory mappings.
- christoph 4y agoI highly recommend the free app DevCleaner - https://apps.apple.com/us/app/devcleaner-for-xcode/id1388020431?mt=12 https://apps.apple.com/us/app/devcleaner-for-xcode/id1388020... I use it almost weekly to clear out the tens of gigabytes of garbage Xcode regularly generates.
- metadat 4y agoShould not be necessary. It's just wrong to have a whole app dedicated to cleaning up after Apple's Lazy Ass.
- saagarjha 4y agoApple has added a thing in Ventura (?) to list and let you remove these files.
- sys_64738 4y agoIt was in Monterey too and maybe earlier.
- sprkwd 4y agoDoes it have a name?
- vladvasiliu 4y agoI don't know the name, but IIRC it's something like "disk usage". It resembles roughly the "storage" panel on iOS.
- saagarjha 4y agoXcode is actually only about 17 GB on disk, assuming you haven’t copied it anywhere. When it’s installed transparent APFS compression is applied to the bundle.
- deleted 4y ago[deleted]
- metadat 4y ago"Only 17GB" Lol.
- saagarjha 4y agoIt’s down to 11 with Xcode 14 ;)
- olliej 4y agoI know right? It’s only multiple OSs, multiple simulators, duplicated binaries for them all. Totally unreasonable for it to be 17gig! After all chrome manages to fit in only half a gig, and it has like a whole browser.
- mro_name 4y agoWho needs it all? Don't force on me what I don't need as once was and alas is no more.
- olliej 4y agoIt's all there because the usability is much better if you download one thing, and then no matter what you then choose to work on, it's available. That said, I think that code signature on Xcode does let you delete whichever sdks and simulators you want without invalidating the main package signature? (This is _very_ much an "I think" case). That would remove the "force" element you find to be a problem.
- 4y ago
- m463 4y agoOmniDiskSweeper is free: https://www.omnigroup.com/more https://www.omnigroup.com/more
- duskwuff 4y agoSo is GrandPerspective: http://grandperspectiv.sourceforge.net http://grandperspectiv.sourceforge.net
- deleted 4y ago[deleted]
- mro_name 4y agoI find it so embarrassing because every dev gets fed this culture. Or take the insane update sizes. Os or Xcode. Or the upload to the app store useing bandwidth several times the binary size. An app that used to be .5MB in objc is now in swift 15MB tesflight, 70MB production ipa and 300MB upload traffic. That's what sustainability looks like in the eyes of a hardware supplier.