When attempting to update my Flutter project to a new Flutter version, I encountered the following error related to CocoaPods and the webview_flutter_wkwebview plugin:
[!] CocoaPods could not find compatible versions for pod "webview_flutter_wkwebview":
In Podfile:
webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
Specs satisfying the `webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)` dependency were found, but they required a higher minimum deployment target.
I managed to solve this issue by adjusting the minimum deployment target in the Podfile.
The
webview_flutter_wkwebviewpod required a higher iOS deployment target than was previously set. Here are the steps I followed to resolve the error:iosfolder of your Flutter project and open thePodfilein a text editor.platform :ios, '9.0'(or whatever your current version is) toplatform :ios, '12.0'. This sets the minimum deployment target toiOS 12.0, which is compatible with thewebview_flutter_wkwebviewrequirements.pod install: Open a terminal, navigate to theiosdirectory of your project, and executepod installto update the CocoaPods dependencies with your new settings.flutter cleanfollowed byflutter build iosin your project's root directory.