An iOS-compatible simulator and toolchain that runs on Linux, with no macOS, VM or remote Mac. It builds Objective-C and Swift apps (UIKit and SwiftUI) from their Xcode projects and runs them on a simulated iPhone or iPad with a home screen, a Settings app and a web browser (Safari).
Goal: write → build → run in the simulator → device build → sign → upload → TestFlight, all on Linux.
Install the latest release (Linux x86_64, glibc 2.35+, with python3, curl, fontconfig and adwaita-icon-theme):
curl -fsSL https://raw.githubusercontent.com/kolabs-dev/isim/main/install.sh | bashThis unpacks the release into ~/.local/lib/isim/<version> and puts isim in ~/.local/bin (add it to your PATH
if the installer says so). Then:
isim bootThis opens the device on its home screen, with Settings in the dock. The installer also adds isim Simulator to
your desktop's app launcher (GNOME, KDE, …): open it from there, or pin it to the dock; opening it again brings the
running device to the front. --no-desktop (… | bash -s -- --no-desktop) skips that on headless machines;
isim desktop uninstall removes it. To add the demo apps:
isim install ~/.local/lib/isim/current/apps/*.appYour first app: isim new writes a project the way Xcode's iOS App template does (SwiftUI, or --uikit for
storyboards; --tests adds unit and UI tests). It is an ordinary Xcode project, so it also opens in Xcode on a Mac.
Swift needs Swift 6.2.4 (isim toolchain install, once):
isim new HelloWorld && cd HelloWorld
isim build -project HelloWorld.xcodeproj -scheme HelloWorld
isim run build/HelloWorld.appUpdating: isim update installs the newest release and makes it active (isim update 0.36.0 for a given one);
isim versions lists the installed releases and isim use VERSION switches between them. Device data
(~/.local/share/isim) is shared by all versions. You can also download a tarball from
Releases and run bin/isim from it directly.
| Command | What |
|---|---|
isim boot |
start the device on its home screen |
isim install App.app… · isim uninstall NAME · isim apps |
manage installed apps |
isim run App.app [args…] |
install, boot and open the app over the home screen (headless or ISIM_STANDALONE=1: the app alone) |
isim reset |
erase installed apps, app data and settings |
isim new NAME [--org com.example] [--uikit] [--tests] [-o DIR] |
create an app project like Xcode's iOS App template (SwiftUI or storyboards, optional unit and UI tests), ready for isim build and isim test |
isim build (-project App.xcodeproj | -workspace App.xcworkspace) [-scheme S | -target T] [-configuration Release] [-o DIR] |
build an Xcode project or workspace: apps, extensions, frameworks, static libraries, Swift packages (remote ones fetched with git, pinned in Package.resolved), .xcframeworks (x86_64 simulator slice), .xcconfig files, shell script phases, CocoaPods workspaces; products in ./build of the current folder (or -o DIR), the last line is done: <path to .app> |
isim build … -list · isim build … -showBuildSettings (-json) · isim project [App.xcodeproj] |
like xcodebuild -list / -showBuildSettings: targets, configurations, schemes / resolved build settings; the project as a tree (targets → build phases → files) |
isim test -project App.xcodeproj -scheme S [-only-testing:Target/Class/test] [-resultBundlePath DIR] |
build and run the scheme's test targets like xcodebuild test: XCTest (hosted in the app or standalone), Swift Testing and XCUITest; exits 65 on failures. In a Swift package's folder (or -package-path DIR), isim test -scheme <Package> runs the package's .testTargets with isim's iOS XCTest |
isim cc … · isim swiftc … · isim metal-compile … |
compile files for the isim SDK (Metal Shading Language: for Metal on the CPU) |
isim info App.app |
show Mach-O platform and dependencies |
isim preview App.app [NAME|INDEX|--list] [-o FILE.png] |
render one of the app's #Previews to a PNG (laid out by its traits) |
isim push [BUNDLE_ID] payload.apns|- |
send a remote notification to the running device, like xcrun simctl push (or drop a .apns file on it) |
isim send COMMAND… |
send script commands to the running device, e.g. isim send "tapid login; shot s.png" |
isim open [--device D] [--os V] [FILE.apns] |
what the app launcher runs: bring the running device to the front, or boot one; an .apns file is sent as a push |
isim desktop install · isim desktop uninstall |
add or remove isim Simulator in the desktop's app launcher (icon, .apns files) |
isim devices · isim version |
device presets with the iOS versions each can run; the isim version and supported iOS versions |
Options for boot, run (and --os/--device for test):
--os 17|18|26|27(or a point release such as17.5; envISIM_OS_VERSION): the iOS version the device runs, default 18. It sets the reported version, what#availableanswers and the look (Liquid Glass from 26). The device data remembers it. Like Xcode, a device needs at least the iOS it shipped with (iPhone 17 models: 26): an explicit older version is rejected, otherwise the nearest valid one is used. See docs/IOS-VERSIONS.md.--device iphonese|iphone13mini|iphone14|iphone15|iphone15plus|iphone15promax|iphone16plus|iphone16pro|iphone16promax|iphone16e|iphone17|iphoneair|iphone17pro|iphone17promax|iphoneduo|ipadmini|ipada16|ipadair11|ipadair13|ipadpro11|ipadpro13--zoom 0.8--dark--headless --script "…"
On the device:
- The window has a toolbar (device menu, Home, Lock, Rotate, Screenshot, light/dark, More: location, URLs, push notifications) and a device bezel whose buttons work; see The window. Changing the device, iOS version or zoom there restarts the device after asking; apps and data stay.
- Click to touch, drag to swipe.
- Swipe up from the bottom edge (or press Ctrl+Shift+H) to go home.
- Press and hold an icon to delete the app.
- F12 takes a screenshot.
- Device data lives in
~/.local/share/isim(override withISIM_DATA).
Automation: --headless --script "wait 2; tapid login; shot s.png; quit" drives the device from tests and CI,
and isim send "…" sends the same commands to a device that is already running (a window you have open, for
example); see docs/SCRIPTING.md for every command and docs/AI-AGENTS.md for
coding agents. Permission prompts, Face ID, location, microphone
and logs can be answered or configured with environment variables: see docs/SYSTEM-PROMPTS.md.
Compiling needs clang/lld 21 or newer (isim's SDK ships libc++ 22; on Ubuntu/Debian get it from apt.llvm.org): LLVM's own, not a Swift toolchain's (swiftly puts one first on PATH; its lld refuses to link for iOS), so isim cc skips those, and CLANG=/path/to/clang names one. Constant Objective-C literals (clang 23) are supported. Swift compiles with Swift 6.2.4 exactly (the compiler isim's SDK is built with: its Swift modules load in no other), installed with swiftly:
isim toolchain installinstalls it (and swiftly first when it is missing; your shell profile is not changed). A failed download is tried again; when swiftly keeps failing, isim downloads swift.org's tarball for the distribution, checks its signature with gpg and unpacks it into~/.local/share/isim-swift/6.2.4. A release newer than swift.org builds Swift 6.2.4 for gets the newest build of its family (Debian 13 and testing: debian12; Ubuntu 24.10 and later: ubuntu24.04; Fedora 42 and later: fedora41), through swiftly when isim installs it, else through the tarball.isim toolchain statussays which toolchain isim uses and why, and what system library itsswiftdriver lacks, if any (swift packagereadsPackage.swiftwith it; on distributions swiftly does not support, such as Arch, swiftly installs the Ubuntu build).- isim looks for, in order:
ISIM_SWIFT_TOOLCHAIN=DIR(a toolchain installed otherwise, e.g. swift.org's unpacked tarball), swiftly's 6.2.4, the tarballisim toolchain installunpacked, and aswiftconPATHthat is 6.2.4 (e.g. a devcontainer from theswift:6.2.4image). Another Swift version is refused with a message, never used. - Earlier releases compiled Swift in Docker's
swift:6.2image; isim no longer uses Docker.
- Developing with AI agents: the build → run → look → fix loop for coding agents, answering prompts headless
- Scripting and automation: script commands,
isim sendand the control FIFO, interactive shortcuts - System prompts, simulated hardware and logs: environment variables for permissions, biometrics, location, network, logs
- iOS versions:
--os 17|18|26|27, device pairing,#available, what changes per version (Liquid Glass) - API coverage: what is implemented, per framework and per iOS version, measured against Apple's documentation
- Core Data · Game Center: isim's model and configuration formats
- App Store distribution: why upload from Linux is blocked, and shipping from a macOS CI runner
- Building · Testing: build.py, the Ninja graph, adding samples/frameworks/overlays; pytest and CI
Requirements: clang/lld/llvm 21 or newer, python3 (with venv), pkg-config, SDL3, cairo, pango, librsvg,
gdk-pixbuf, fontconfig, ImageMagick and Swift 6.2.4 (isim/tools/isim toolchain install; see Compiling above).
Package names for Ubuntu are in isim/ci/Dockerfile, which CI builds on; on Arch/CachyOS: clang lld llvm sdl3 cairo pango librsvg python imagemagick.
Optional at run time: webkitgtk-6.0 + gtk4 (gtk4-broadwayd) for WKWebView / SFSafariViewController / ASWebAuthenticationSession (real WebKit, rendered off screen), openssl 3 (libssl.so.3) for TLS NWConnections, libcurl for URLSession, ICU (libicuuc / libicui18n, any version from 50) for locale data beyond the built-in languages (collation, non-Gregorian calendars, every locale's formats).
Media and ML (each used only when an app needs it): ffmpeg (video, export, asset reader/writer, the simulated camera ISIM_CAMERA), zbar (QR/barcodes in capture and Vision), tesseract (Vision and Core Image text recognition), zxing-cpp (Aztec / Data Matrix reading; Core Image's PDF417 generator), opencv-data (Core Image face detection), LibRaw's libraw-bin (CIRAWFilter), liblouis (Accessibility's braille translation), whisper.cpp or Vosk (Speech recognition), LibreOffice (soffice: Quick Look previews of Word, Excel and PowerPoint documents). Tests that need a missing tool skip it.
isim/build.py fetchisim/build.pyisim/build.py testfetch clones the pinned Swift and LLVM sources into third_party/ (once). build.py builds everything with Ninja
(from PATH, or installed into isim/out/pyenv): only steps whose inputs changed run, independent steps run in
parallel, and a build with nothing to do takes well under a second. build.py test runs the pytest suites in
isim/tests (arguments go to pytest: isim/build.py test -k navigation); see docs/BUILD.md and docs/TESTING.md.
Tools are installed in isim/out/bin. To package a release into isim/dist/ (the host runtime is built in an Ubuntu
22.04 container):
isim/build.py package 0.36.0API coverage is measured against Apple's documentation, per framework and per iOS version, in docs/COVERAGE.md (an index of every iOS framework, with a page per framework in docs/frameworks/). ✅ done · 🟡 partial · ⬜ not started · ⛔ blocked
| Area | Status | Notes |
|---|---|---|
| Build for iOS on Linux | ✅ | clang/lld and Swift 6.2 produce iOS-simulator (x86_64) and device (arm64) Mach-O; isim build / isim test handle Xcode projects, workspaces, packages and XCTest / Swift Testing / XCUITest |
| Run simulator binaries | ✅ | own Mach-O loader, libSystem, Objective-C and Swift runtimes, Foundation; apps keep running across isim updates (ABI checked); Swift apps built before 0.12 need one rebuild (the base Swift overlays became resilient), and SwiftUI apps built before 0.36 that use a built-in button style (.buttonStyle(.plain), .bordered, …) need one too |
| UIKit · SwiftUI | 🟡 | broad coverage, including storyboards and SwiftUI navigation, presentation and effects; SwiftUI is isim's own implementation |
| Device | ✅ | home screen (pages, folders, App Library, Spotlight, widgets), lock screen, Notification Center, Control Center, app switcher, Settings; 12 iPhones and 4 iPads; iOS 17, 18, 26 and 27 |
| Linux releases | ✅ | install.sh, isim update |
| Device build, signing, .ipa | ❌ | blocked: isim's frameworks are simulator-only and Apple's device SDK cannot be used on Linux (DISTRIBUTION.md); arm64 code without frameworks links |
| Upload + TestFlight | ⛔ | not from Linux (see below); ship the same Xcode project from a macOS CI runner with mobile-actions |
- No Apple SDK or binaries. isim ships a self-authored SDK, because the Xcode/SDK license restricts its use to Apple hardware.
- No faked metadata. Builds never claim Xcode or Apple SDK versions. Binaries are never retargeted to macOS or Linux and reported as iOS compatibility.
- Upload is blocked. The App Store requires builds made with a current Xcode/iOS SDK, which a Linux build cannot honestly claim. To ship, build the same Xcode project with Xcode on a macOS CI runner, e.g. with kolabs-dev/mobile-actions's
ios-upload. See docs/DISTRIBUTION.md. - Keys stay local. Signing keys and API credentials stay on the machine, out of the repo.
| Path | What |
|---|---|
isim/runtime |
Linux host: loader, libSystem, ObjC runtime, window, rendering, device shell |
isim/sdk-src, isim/frameworks, isim/swift |
SDK headers; Foundation, UIKit, …; Swift runtime and overlays (including SwiftUI) |
isim/system |
home screen (SpringBoard), Settings and Safari apps |
isim/tools |
isim CLI and Xcode project builder |
isim/samples, isim/tests |
demo apps and test suites |
isim/release |
release packaging |
isim/icons, isim/fonts |
the app icon (desktop launcher, window); isim's UI fonts |
docs/ |
documentation |
Apache-2.0, see LICENSE. Release packages include third-party licenses in licenses/ (isim/release/licenses).
isim is an independent project. It is not affiliated with, endorsed by, or sponsored by Apple Inc. Apple, iPhone, iPad, iOS, Xcode, Swift, UIKit, SwiftUI, TestFlight and App Store are trademarks of Apple Inc., used here only to describe compatibility.
