iOS-compatible shell + CLI util bins (bash, sh, ls, pwd, cat, etc.).
tar xf prebuilt.tar.gz
Will extract a precompiled sysroot to the sysroot directory.
Or, you can use compile.sh to build from scratch (described below).
This is a tiny bare-bones iOS userspace environment that depends only on
libSystem.B.dylib, making it useful for running off a ramdisk (no dyld shared
cache required).
- Prebuilt tools are provided in
prebuilt.tar.gz. compile.shbuildsbash,dash, andcoreutilsfor iOS, producing the same files already inprebuilt.tar.gz.- We provide both
bash(in/bin/bash) anddash(in/bin/sh) bashandprintfboth requirelibiconv.2.dylibin addition tolibSystem.
Requirements:
- Mac + Xcode with iOS SDK (osxcross not tested)
- GNU Autotools (
autoconf+automake) wgetgit
brew install autoconf automake wget./compile.sh- Files will be in
${PWD}/sysroot
Both the bash and dash shells are provided in /bin/bash and /bin/sh
respectively.
macOS 26.6.2 (25G83) virtual machine with Xcode 26.5 (17F42).