r/iOSProgramming • • 9d ago

Library lazymobile 0.4.0: a terminal dashboard for iOS simulators, Android emulators and phones (open source)

v0.4.0 released. It adds app launch and stop, device actions (deep link, screenshot, screen recording, dark mode, location), and log filters.

I kept switching between xcrun simctl, Simulator.app and Console just to do small things: boot a device, open a deep link, read one app's log. lazymobile puts every simulator, emulator and connected phone in one terminal screen.

On a simulator you can:

- boot, shut down, erase, create and delete

- open a deep link, take a screenshot, record the screen

- switch dark and light mode, set the location, tidy the status bar for screenshots

- grant or revoke a permission, clear an app's data

- follow one app's live log, filter it, and jump between errors

On a connected iPhone it can install an app and show one app's log. The rest is simulator and Android only for now.

It is a single binary that calls the tools you already have (xcrun, adb). It works inside Neovim or any editor's terminal, and every command has --json for scripts.

brew install --cask 0xrnp/tap/lazymobile

https://github.com/0xrnp/lazymobile

Free and open source (MIT), macOS and Linux. What do you still reach for simctl for that it doesn't cover?

7 Upvotes

10 comments sorted by

1

u/rnp-infinity 9d ago

I'm the author. If something doesn't work on your machine, run `lazymobile doctor`. It says what is missing and how to install it.

1

u/dawedev 9d ago

Having erase and clear app data one key away beats digging through simctl help every time. One column I'd add is the size of each simulator's data folder, plus a way to delete everything simctl marks as unavailable after an Xcode update, since those pile up quietly. I'm biased here because I make DevCleaner, a Mac app that clears Xcode and simulator leftovers, but having this in the terminal next to the logs makes a lot of sense. Does create let you pick the runtime, or does it use the newest one installed?

1

u/rnp-infinity 9d ago

Thanks! Yes, create asks which iOS version to use (newest at the top), then the device. Dashboard only for now. The data size column and removing unavailable simulators are good ideas, I'll look into them.

1

u/dawedev 9d ago

Good that create asks for the runtime, that was the part I'd have wanted. For the cleanup side, xcrun simctl delete unavailable already does it in one call, so it might be a small one to wire up.

1

u/rnp-infinity 9d ago

Yep! I’ll try to get it done in next release.

1

u/rnp-infinity 1d ago

Following up on this: both made it into 0.5.0. `lazymobile list` shows each simulator's data size, and `lazymobile delete --unavailable` lists the dead ones with their size, then `--yes` removes them. create works from the command line now too, with --runtime. Thanks for the nudge, and if the sizes look off next to DevCleaner I'd like to know.

1

u/dawedev 1d ago

Nice, showing the sizes before --yes is the right order for a delete. On comparing numbers (I build DevCleaner): if both measure the device folder under ~/Library/Developer/CoreSimulator/Devices/<UDID>, they should land close. Small gaps usually come from APFS clones and from counting allocated vs logical size, so it's worth saying which one lazymobile shows.

1

u/rnp-infinity 1d ago

lazymobile doesn't measure it itself, it shows the dataPathSize that `simctl list -j` reports, so just the data/ folder.

1

u/rnp-infinity 1d ago

I compared two of my simulators,
it came out about 3% and 6% under what I got adding up allocated blocks in that folder, and still under the logical size, so I wouldn't call it either one. I'll note in the docs that it's simctl's number.

1

u/dawedev 1d ago

That makes sense if it's only data/, since the device folder also holds device.plist and a few other files next to it. Noting in the docs that it's simctl's dataPathSize is the honest fix, people can then compare like with like.