Skip to content

The version 3.24.4 is breaking on webview_flutter #185407

Description

@jsf-ns

Steps to reproduce

Hello team,

I have the webview_flutter on v4.10.0

And this version is using the webview_flutter_wkwebview: ^3.22.0

But now, I have having this issue to build my apps:

Failed to build iOS app
Swift Compiler Error (Xcode): Cannot find type 'FlutterSceneLifeCycleDelegate' in scope
/Users/builder/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.24.4/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/WebViewFlutterPlugin.swift:53:71

Swift Compiler Error (Xcode): Value of type 'any FlutterPluginRegistrar' has no member 'addSceneDelegate'
/Users/builder/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.24.4/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/WebViewFlutterPlugin.swift:33:16

Is there any possibility to review this change?

Expected results

Success iOS build.

Actual results

Failed to build iOS app
Swift Compiler Error (Xcode): Cannot find type 'FlutterSceneLifeCycleDelegate' in scope
/Users/builder/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.24.4/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/WebViewFlutterPlugin.swift:53:71

Swift Compiler Error (Xcode): Value of type 'any FlutterPluginRegistrar' has no member 'addSceneDelegate'
/Users/builder/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.24.4/darwin/webview_flutter_wkwebview/Sources/webview_flutter_wkwebview/WebViewFlutterPlugin.swift:33:16

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[!] Flutter (Channel [user-branch], 3.35.4, on macOS 15.6 24G84 darwin-arm64, locale en-IE) [572ms]
    ! Flutter version 3.35.4 on channel [user-branch] at /Users/jeffersonsantos/Documents/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision d693b4b9db (7 months ago), 2025-09-16 14:27:41 +0000
    • Engine revision c298091351
    • Dart version 3.9.2
    • DevTools version 2.48.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-lldb-debugging
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [2.6s]
    • Android SDK at /Users/jeffersonsantos/Library/Android/sdk
    • Emulator version 36.3.4.0 (build_id 14257411) (CL:N/A)
    • Platform android-36, build-tools 36.1.0
    • Java binary at: /Applications/Android Studio Preview.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [2.7s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17C52
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [10ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2.1) [9ms]
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] VS Code (version 1.116.0) [8ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.132.0

[✓] Connected device (4 available) [6.5s]
    • iPhone (wireless) (mobile)              • 00008030-000605810A87C02E • ios            • iOS 26.3.1 23D8133
    • GuestU’s iPhone (2) (wireless) (mobile) • 00008110-000951243A86401E • ios            • iOS 26.5 23F5043k
    • macOS (desktop)                         • macos                     • darwin-arm64   • macOS 15.6 24G84 darwin-arm64
    • Chrome (web)                            • chrome                    • web-javascript • Google Chrome 147.0.7727.102
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Test’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Jéfferson Santos’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this
      Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [479ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

Labels

c: regressionIt was better in the past than it is nowp: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-ecosystemOwned by Ecosystem team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions