The error occurs because of a version mismatch between one of your dependencies and flutter_inappwebview. The issue specifically appears in iOS builds with the error.
@nicholas_randall is correct. Update your pubspec.yaml to use the correct version of flutter_inappwebview:
flutter_inappwebview: ^6.1.0+1
Then run:
flutter clean
flutter pub get
cd ios
pod install
Why This Works:
pod install
updates the iOS native dependencies to match the new version.If you're still having issues after updating, you might need to:
pod deintegrate
in the iOS directoryThis ensures a completely clean installation of the updated dependencies.