fix(macos): Always try to create webview, even if webkit runtime doesn't get detected correctly - #14276
Merged
Conversation
…t detected correctly
Contributor
Package Changes Through 44cfd7aThere are 10 changes which include @tauri-apps/api with minor, tauri-cli with minor, tauri-utils with minor, tauri-runtime-wry with minor, tauri-runtime with minor, tauri with minor, tauri-bundler with minor, @tauri-apps/cli with minor, tauri-codegen with patch, tauri-macros with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
lucasfernog
approved these changes
Oct 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm running a Tauri application inside a Pixi/Conda environment under macOS, and for some unknown reasons Tauri fails to detect the
com.apple.WebKitbundle, which causes that no window / webview gets created, aswebview_runtime_installedisfalse.From what I know, it shouldn't be possible to use macOS without WebKit, as WebKit is integrated in the system image, so the
webview_runtime_installedcheck is unnecessary - in theory. So, when thewebview_runtime_installedcheck fails for whatever reason, try to create the webview under macOS anyway.For testing purposes, I patched out that particular check, and was able to confirm that the webview was created perfectly fine, despite
webview_runtime_installedbeingfalse(which wasn't true).For more details, see:
Closes #13996