ios - Cocoapods 似乎安装了错误的 pod 版本
问题描述
Cocoapods 似乎安装了错误的 pod 版本。
这是我的示例行pubspec.yaml
:
webview_flutter: ^1.0.7
运行时pod install
,这是我看到的:
Installing webview_flutter (0.0.1)
在我的flutter/.pub_cache/hosted/pub.dartlang.org/
我看到的只有以下版本:
webview_flutter-0.3.24
webview_flutter-1.0.7
使用 XCode 构建时,我收到了一些webview_flutter
关于正确1.0.7
版本的警告,因此尽管有 cocoapods 输出,但似乎正在使用正确的 pod。但是,这确实令人困惑。任何想法如何解决这个问题将不胜感激。
我尝试过重新安装 cocoapods、解构 pod 并再次构建、清理、更新 pod repo、删除 Podfile.lock 等常见的嫌疑犯。
这是我的环境:
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-FI)
• Flutter version 1.22.5 at /Users/ilonamooney/Documents/dev/flutter
• Framework revision 7891006299 (10 days ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/ilonamooney/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/ilonamooney/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.3, Build version 12C33
• CocoaPods version 1.10.0
[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] Connected device (1 available)
• Ilona’s iPhone (mobile) • a12e6e165529c7307dfdb723f37e02f3901f17d0 • ios • iOS 14.2```
解决方案
推荐阅读
- ios - Swift 4 DispatchGroup 重复 NSTimer 调用直到满足条件
- java - Java,使用正则表达式从 html 中删除指向某些网站的链接
- javascript - 我试图显示 circle 的属性值但它不起作用
- linux - 如何在linux中重命名列?
- c# - 从我不知道编码的字节数组中解码字符串
- firebase - Firebase Cloud Function - 使用额外信息创建用户
- timer - 查找输入方波信号的频率时出错
- javascript - Vue:在获取新组件并将它们插入 HTML 后重新启动 Vue
- python - PyEphem - 月球计算的照明分数
- postgresql - Kubernetes 集群中 Postgres 数据库的持久卷