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)]