Introduction
Lairport is built on Tauri v2, so your machine needs the same toolchains Tauri does. Thankfully, you don’t need to check them by hand. The doctor command checks every one of them for you:
laravel-mobile doctorWhen a check fails, doctor shows you the command that fixes it, and the --fix option runs those commands for you. If Rust is installed but doctor can’t find it, the usual cause is that ~/.cargo/bin isn’t on your PATH. The fix is to load Rust’s environment in your shell, which doctor shows as . "$HOME/.cargo/env".
If you only care about one platform, you may limit the checks using the --platform option:
laravel-mobile doctor --platform iosIf you would like to use the results in a script or in CI, the --json option prints them as JSON.
Every Platform
No matter which platform you build for, you’ll need:
- Rust (stable) with
cargo. - Node 22.18 or newer, for Vite.
- A Laravel Rust (
laravel-rustv0.1.x) application using Inertia with React or Vue.
The Tauri CLI
You don’t need to install the Tauri CLI or the JavaScript adapter yourself. laravel-mobile compiles your app with Tauri, and the init command adds @tauri-apps/cli to your package.json file’s dev dependencies and @laravel-rust-mobile/core to its dependencies, then installs both with your project’s package manager. It ships prebuilt binaries, so there’s nothing to compile, and everyone on your team and in CI gets the same version from your lockfile.
If you’d rather install dependencies yourself, you may provide the --no-install option to init, then run your usual install command afterwards.
iOS
To build and run your iOS app, you’ll need:
- A Mac with Xcode, the iOS simulator, and CocoaPods.
- The Rust targets
aarch64-apple-iosandaarch64-apple-ios-sim. - An Apple Developer team ID in
ios.team_id, to run on a device or upload to the App Store.
By default, your app supports iOS 15.0 and newer, which is the oldest version current Xcode builds for. You may raise this using the ios.minimum_version option.
Don’t have a Mac? You can still preview your pages on an iPhone’s browser using laravel-mobile dev, but running the native app and building it for the App Store need a Mac for now. The running your app documentation explains exactly what works without one.
Android
To build and run your Android app, you’ll need:
- The Android SDK with the NDK installed.
doctorfinds the SDK fromANDROID_HOME, or from Android Studio’s default location. - An emulator, created in Android Studio’s Device Manager, or a phone with USB debugging on.
doctorcounts your emulators. - A JDK.
- The Rust target
aarch64-linux-android, plusarmv7-linux-androideabi,i686-linux-android, andx86_64-linux-androidto cover every device and emulator. adbon yourPATH, to launch your app on devices.
By default, your app supports Android 7.0 (API level 24) and newer. You may raise this using the android.min_sdk option.