Login
You're viewing the ruby.social public feed.
  • Nov 24, 2026, 8:42 PM

    iOS Developer Protip: For the past month or so, I’ve been having problems with Simulators, for generating Interface Builder layouts, generating SwiftUI previews, and for testing apps in Device Hub.

    One example: I could create a Simulator with iOS 27.2, start the app, and watch it launch in lldb, and never see it appear in Device Hub. Another: “Preparing editing functionality” either taking forever or failing completely.

    Then I discovered this when trying to reclaim disk space:

    1/n

    Image attached toot
    💬 4🔄 4⭐ 8

Replies

  • Nov 24, 2026, 8:55 PM

    Every machine I checked has these weird URL encoded paths in ~/Library/Developer/Xcode/UserData, both for “IB Support” and “Simulator Devices” (under Previews). You can delete them and they come back. Some part of Xcode not agreeing with another.

    It’s also likely that these Simulators are APFS clones, so the space they are using is a bit of a lie. But the fact remains: they didn’t MATCH. And I don’t trust Xcode to resolve that discrepancy.

    So I pulled the trigger on the nuclear option.

    2/n

    💬 1🔄 0⭐ 1
  • Nov 24, 2026, 9:00 PM

    I decided to remove all simulators and nuke the “IB Support” and “Previews” folders in UserData.

    All it takes is this from a Terminal:

    $ xcrun simctl delete all

    And then a reboot for good measure.

    WARNING: All the apps and data you have in your simulated environments will be deleted. There is no undo.

    But you know what?

    I can now use an iPhone Duo in Xcode 27.2, generate layouts in Interface Builder, and do SwiftUI previews without issues. I consider that a win.

    3/n

    💬 3🔄 3⭐ 15
  • Nov 24, 2026, 9:09 PM

    My guess is the developers working on Xcode don’t have Simulators that go way back in time: some of mine were from iOS 17.

    I’ll have to recreate the simulators and test data if I ever need to use these older iOS releases - that’s a pain. But less of a pain that not being able to develop with the current iOS releases.

    A nice side bonus is that I’ve also reclaimed about 300 GB of storage. Of course that will go away as I make and populate simulators, but it’s nice to have a clean slate.

    4/4

    💬 2🔄 0⭐ 1
  • Nov 24, 2026, 9:24 PM

    Besides using a ridiculous amount of disk space, simulators also use a shitload of processes.

    In the hospital last week, I was using a M2 MacBook Air with 24 GB of memory and it was excruciating.

    Opening a XIB, a SwiftUI preview, or a simulator spawns hundreds of processes and you don’t have much control over it (you can shutdown simulators, but that’s it).

    At one point I was using 20 GB of swap space and waiting five minutes for Device Hub to swap in.

    BONUS/5

    💬 2🔄 0⭐ 3
  • 💬 1🔄 0⭐ 3
  • 💬 0🔄 1⭐ 3
  • Nov 24, 2026, 9:25 PM

    @chockenberry i just cleaned up ~150gb from my drive by deleting simulators i’m not using. a single iPhone 17 sim was taking up 50gb

    💬 0🔄 1⭐ 0
  • Nov 24, 2026, 9:32 PM

    @chockenberry i think you just crystallized my understanding of why i’ve been finding it far more enjoyable to do my dev work in the microcontroller space.

    mobile devices are fascist tracking tech to be left behind at every opportunity. an arduino or esp32 is far less capable of covertly fucking me over and as a bonus the dev kit is relatively tiny.

    💬 0🔄 0⭐ 0
  • Nov 29, 2026, 6:30 AM

    @chockenberry I had a similar issue this summer.
    System Data was taking up about 100GB of space. And I was like, why?
Some guy (or gal) on Reddit suggested:
    Finder - Go (with option key) - Library. There I sorted by size. My Developer folder was taking about 75GB.
I only have Xcode, iOS simulator, and stuff (Predictive code completion/developer documentation).
Deleted simulators, Xcode, Developer folder. Restarted. Reinstalled everything.
    Before: 10GB available.
    After: 70GB available.

    1/2

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 24, 2026, 9:45 PM

    @chockenberry

    Something has definitely gone haywire. If I launch Xcode my Mac will slow to a crawl and Acivity monitor shows various simulator devices eating up ram, including ones I have never launched

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0