r/EmulationOniOS • u/oneamendez • 17d ago
Gameplay / Showcase crate: unbox a new way to run Linux on iPhone, powered by Rust
Hey everyone! I built crate (Compact Runtime for Arm64 Translation and Emulation), a free and open-source app that runs full Linux desktops in virtual machines right on your iPhone. The video is Ubuntu with GNOME on my iPhone Duo.
Before this, the best I'd found was UTM with JIT, but Ubuntu was unusable there unless you ran it headless or with Xfce. I wrote crate's engine from scratch in Rust with speed as the main goal, and it's about 5x faster than QEMU's JIT, the engine UTM uses, in my benchmarks.
Runs today: Ubuntu (GNOME), Debian (KDE Plasma or Xfce) and Arch Linux ARM (KDE Plasma or Xfce). More distros are coming, then other operating systems.
Try it: download the IPA from the v0.1 release, sign it with your own Apple account, and turn on JIT with StikDebug or crate's built-in StikJIT. INSTALL.md walks you through it. I've only tested it on my iPhone Duo so far, so device reports are very welcome, even if it just works. It's early, so expect rough edges; networking speed and boot time are the main ones I'm working on.
- App: https://github.com/oneamendez/crate-ios
- Engine: https://github.com/oneamendez/crate
On Henge: it came out while I was building this, and I've tried it, but crate was written from public specs, not from Henge's or QEMU's code. I'd rather solve things my own way first and compare later.
Why I built it: I like rabbit holes. I was designing a biped robot in Autodesk and wanted to keep working on it from my phone, but nothing ran Linux fast enough, so I built my own. Over the next couple of weeks I'll share the Magic Keyboard-style keyboard I'm building for my iPhone Duo, and eventually the robot. I've kept most of my projects to myself until now, and I want to start sharing them.
Edit: v0.1.2 is out and fixes two bugs in the first release, so grab that one instead. Details in the comments.
Edit: v0.1.4 is out with a bunch of stuff from this thread: external monitor support (your phone turns into a trackpad), mouse support on iPad, picking your disk size, and more reliable JIT with LocalDevVPN. https://github.com/oneamendez/crate-ios/releases/tag/v0.1.4
Edit: v0.1.5 is out with more memory options for your VMs: 2, 10 and 12 GB, alongside 4, 6 and 8. If crate closes on you, it’s usually iOS stopping it for using too much memory, so try lowering the VM to 2 or 4 GB. On my iPhone 16 (8 GB), Ubuntu with GNOME at 2 GB now runs Chrome and YouTube without closing. https://github.com/oneamendez/crate-ios/releases/tag/v0.1.5
•
u/AutoModerator 17d ago
Free Apple accounts are limited to 3 active sideloaded apps.
One common workaround is LiveContainer, which allows you to run additional apps inside a container and reduce how often apps need to be reinstalled.
Typical method:
LiveContainer may also need to be uninstalled and reinstalled before the entitlement works correctly.
LiveContainer can also install two additional LiveContainers (for a total of three). This setup can further reduce the need to constantly add/remove sideloaded apps, but it is more advanced and may not work reliably for everyone.
LiveContainer is not always officially supported by emulator developers and can sometimes cause unexpected issues. If something breaks while using LiveContainer, try reproducing the issue without it before asking for support.
Do not ask for or share paid certificates, piracy tools, or bypass services here.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/Just-A-Random-ID 17d ago
Nice
3
u/Current_Western_134 17d ago
Does the Bluetooth work on it?
3
u/AxelAnt2244 16d ago
how does performance compare to Henge?
3
u/CompetitiveBug123 16d ago
First: congratulations on your work! I’ve tried Ubuntu and Debian. Very promising for a v0.1.
Ubuntu: I was able to install Firefox and Chromium through snap, but each time I tried to launch a browser the container crashed.
Debian: I was able to navigate the internet trough the default browser. Mouse scroll wheel didn’t seem to work. Tried downloading VS Code but container crashed.
Max resolution on external display was 1080p.
Overall experience was a bit slow on a IPad Pro M2, but that was expected. I cannot wait to check the next versions!
2
u/tubaraodogroove 17d ago
That’s beautiful
2
u/Similar_Air133 16d ago
What driver did you use for the gpu translation? And how good does 3D accel work?
2
u/yrlmz14 15d ago
Good job! Though, Android is just way better
2
u/Tony_515 13d ago
Kudos! Hands-down the best I’ve seen in terms of speed and performance on iOS to date. I was doing basic workflows nearly flawlessly on an iPhone 15 Pro. There are some kinks to iron out though. On 0.1.5, the container spontaneously becomes unresponsive/crashes especially in browsers (I tried Firefox and Helium) and VSCode; my phone does get very hot and there’s seemingly no throttling in place; there’s no way to maintain a shared folder between iOS and Crate; no way to run Crate in the background; and mouse support sort of works, at least until there’s a mismatch when trying to drag a window. It would also be nice if we had more control over the VM options, like the number of cores; serial/terminal only; etc. But again, amazing!!
2
u/Volerikan4 16d ago
I can’t get LocalDevVPN to connect with crate. It worked fine with Henge. Is there anything I can try?
1
u/oneamendez 17d ago
Two bugs in v0.1, both fixed in v0.1.2:
sign-ipa.sh--installwasn’t affected. v0.1.2’s script makes a clean IPA.If you report a bug, the log export now shows which version you’re on (v0.1 showed “0.1” no matter what).
Release: https://github.com/oneamendez/crate-ios/releases/tag/v0.1.2
Thanks to everyone trying it. Keep the bug reports coming.
1
u/thinman 17d ago
Would it support older iPads?
1
u/Lordnodob 17d ago
What is the difference between CRATE and Linpad/ Linux for IPad App ? Ä
1
u/EzMell 16d ago
Y cuánto espacio puede tener? El problema para mí de henge es que solo son como 60GB y eso no es nada. 20GB son el OS
1
u/Familiar_Election_94 16d ago
Can I hook up my phone to a desktop and use my phone as a pc? Maybe I could run ZorinOS on it.
1
u/BottleNervous5923 16d ago
Can games, or like Prism launcher run on this?
1
u/Ayan_4k 16d ago
Can it run steam games?
1
u/atapla 16d ago
it annoys me because this seems useful but the project is young and im afraid to be happy addicted with this because this fills my needs 100% .. and you decide to stop maintaining your project... Another anoying part is JIT limitation in debugger mode. Is there other technics you can use for that like AOT or whatever else ?
1
u/Ok-Butterscotch6574 16d ago
Still doesn't beat my UTM HV iPad Pro (11-inch) (4th generation) lol, anyway nice!
1
u/CutzuSD 16d ago
is this better than linux runner?
2
u/RenegadeUK 16d ago
For Linux users this will be awesome :)
2
u/RUserII 13d ago
Will 'Crate: Unbox' be coming to Apple App Store?
1
u/Heinekenpsx 16d ago
Nice
1
u/EzMell 16d ago
No funciona JIT en LC. Aunque me funciona con todas las apps que tengo. Esta es la primera que no puedo activar JIT usando skitdebug en LC2
1
u/ufdfiffif 14d ago
Pls realeese it to TestFlight
1
u/Level-Preference1953 10d ago
Where can you download this? Can’t find it on the App Store
0
u/szableksi 17d ago
work in older iphones like xr?
0
u/-snip- 16d ago edited 16d ago
I find it so funny that vibe coders are so fixated on rust. It nearly defeats the purpose of using it. Such a weird trend. Also it would probably help if you provided some actual information on what makes this faster. It's great that claude is boasting this claim to you, but I find it very hard to believe this is 5x faster than a pretty standard vm with jit. That's an insane claim to make.