From 684791efa6f3c671a0435d456ac208bca871d8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20H=C3=A4cker?= Date: Tue, 14 Oct 2025 16:58:43 +0200 Subject: [PATCH] fix(macos): Always try to create webview, even if webkit runtime isn't detected correctly (#14276) --- .changes/macos-always-create-webview.md | 5 +++++ crates/tauri-runtime-wry/src/lib.rs | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changes/macos-always-create-webview.md diff --git a/.changes/macos-always-create-webview.md b/.changes/macos-always-create-webview.md new file mode 100644 index 000000000..835782ba8 --- /dev/null +++ b/.changes/macos-always-create-webview.md @@ -0,0 +1,5 @@ +--- +"tauri-runtime-wry": patch:bug +--- + +Always try to create macOS WebKit webview, even if webkit runtime doesn't get detected correctly diff --git a/crates/tauri-runtime-wry/src/lib.rs b/crates/tauri-runtime-wry/src/lib.rs index 4b47b9d17..1aac9f1aa 100644 --- a/crates/tauri-runtime-wry/src/lib.rs +++ b/crates/tauri-runtime-wry/src/lib.rs @@ -4535,7 +4535,11 @@ You may have it installed on another user account, but it is not available for t "#, ); - return Err(Error::WebviewRuntimeNotInstalled); + if cfg!(target_os = "macos") { + log::warn!("WebKit webview runtime not found, attempting to create webview anyway."); + } else { + return Err(Error::WebviewRuntimeNotInstalled); + } } #[allow(unused_mut)]