tinyhumansai/openhuman · error

error while running mobile tauri application

Error message

error while running mobile tauri application

What it means

Fatal bootstrap failure of the mobile Tauri entry point in src-tauri-mobile: tauri::Builder::default()...run() returned an Err while wiring plugins (barcode-scanner, PTT) and the mobile window. The message is the expect/unwrap payload on the builder result, so the process aborts during startup before any UI appears.

Solutions

  1. Inspect the logged builder error (plugin init failure is the usual cause) and fix the offending plugin registration
  2. Verify mobile entry-point metadata (bundle id, entitlements) with `tauri ios dev` / `tauri android dev`
  3. Ensure plugin Swift/Kotlin stubs compiled for the target platform
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at app/src-tauri-mobile/src/lib.rs:38 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/f7829e4244a479e3. Report an issue: GitHub.

Appendix: source

Thrown at app/src-tauri-mobile/src/lib.rs:38

async fn app_quit<R: Runtime>(app: AppHandle<R>) -> Result<(), String> {
    log::info!("[mobile] app_quit invoked");
    app.exit(0);
    Ok(())
}

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
    log::info!("[mobile] run() — starting mobile Tauri builder");

    tauri::Builder::default()
        .plugin(tauri_plugin_barcode_scanner::init())
        // PTT ships Swift sources for iOS only; on Android the plugin
        // registers as a no-op stub (all commands return NotSupported).
        // See packages/tauri-plugin-ptt/src/lib.rs.
        .plugin(tauri_plugin_ptt::init())
        .invoke_handler(tauri::generate_handler![app_quit])
        .run(tauri::generate_context!())
        .expect("error while running mobile tauri application");
}

View on GitHub (pinned to 7491200858)