When I am trying to run my Flutter application on iPhone 15, I am getting an error similar like this.
Launching lib/main.dart on iPhone 15 Pro in debug mode…
Xcode build done. 16.3s
Failed to build iOS app
Swift Compiler Error (Xcode): Method does not override any method from its superclass
/Users/Vishnu/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.1.0/ios/Classes/InAppWebView/InAppWebView.swift:1431:25
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.
Exited (1).
3
I think this problem is fixed in latest version of flutter_inappwebview
as per this issue. Just update to version 6.1.0+1
in your pubspec.yaml
, like this:
flutter_inappwebview: ^6.1.0+1
If, for some reason, update is impossible, one can update only iOS implementation, like this:
flutter_inappwebview_ios: 1.1.0+1
But I believe it’s very rare situation, when you can’t update patch version of dependency (flutter_inappwebview
) so first way from this answer is preferred.
2