Flutter:CocoaPods 找不到 pod“webview_flutter_wkwebview”的兼容版本:

问题描述 投票:0回答:1

我正在使用 flutter Upgrade 进行升级,但出现错误,所以我决定安装 Pods

尝试重新安装时,我遇到错误

bobbyjulian@Bobbys-MacBook-Pro ios % pod install
Analyzing dependencies
firebase_core: Using Firebase SDK version '10.20.0' defined in 'firebase_core'
[!] 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.

我做过的事

  1. 扑扑干净
  2. flutter 酒吧获取
  3. cd ios
  4. rm -rf Pod
  5. rm -rf podfile.lock
  6. pod install --repo-update
  7. gem 安装 cocoapods
  8. 再次尝试 pod install,仍然会出现错误

如果您看到错误,则说明 webview_flutter_wkwebview 有问题,我没有在 pubspec.yaml 中使用它

我在这里遗漏了什么吗?谢谢你

flutter dart cocoapods
1个回答
0
投票

确保更改 Podfile 中的最小部署目标。

platform :ios, '9.0' <- change this to 13 or 14
....
....
....

查看此图片

答案参考

© www.soinside.com 2019 - 2024. All rights reserved.