Skip to content

Instantly share code, notes, and snippets.

@jwhitmarsh
Last active July 15, 2024 06:34
Show Gist options
  • Save jwhitmarsh/906319d89015919d73a51353fdb76967 to your computer and use it in GitHub Desktop.
Save jwhitmarsh/906319d89015919d73a51353fdb76967 to your computer and use it in GitHub Desktop.
Fake low disk space on Xcode Simulator

Mount

hdiutil create -size 400m -fs HFS+ /tmp/400.dmg
hdiutil attach /tmp/400.dmg -mountpoint /Users/jwhitmarsh/Library/Developer/CoreSimulator/Devices/{guid}

Unmount

see list of volumes

mount

eg /dev/disk2s1

hduitil detach {volume id}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment