简体   繁体   English

CocoaPods 找不到 pod "Flutter" 的兼容版本:在 Podfile: Flutter (from `Flutter`)

[英]CocoaPods could not find compatible versions for pod "Flutter": In Podfile: Flutter (from `Flutter`)

After upgrade to flutter 3.1, I can build and run for android but I got the following error for ios.升级到 Flutter 3.1 后,我可以为 android 构建和运行,但我在 ios 上遇到以下错误。 May I know what is the reason for this issue?我可以知道这个问题的原因是什么吗?

Aungs-MBP:ios aungmyooo$ pod install
Analyzing dependencies
firebase_analytics: Using Firebase SDK version '8.15.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.15.0' defined in 'firebase_core'
Warning: firebase_app_id_file.json file does not exist. This may cause issues in upload-symbols. If this error is unexpected, try running flutterfire configure again.
firebase_crashlytics: Using Firebase SDK version '8.15.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '8.15.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Flutter":
  In Podfile:
    Flutter (from `Flutter`)

Specs satisfying the `Flutter (from `Flutter`)` dependency were found, but they required a higher minimum deployment target.

[✓] Flutter (Channel master, 3.1.0-0.0.pre.1279, on macOS 12.4 21F79 darwin-x64, locale en-GB) • Flutter version 3.1.0-0.0.pre.1279 at /Users/aungmyooo/Development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ddeb0b99c5 (18 hours ago), 2022-06-16 13:53:23 -0700 • Engine revision f8c0dc87bc • Dart version 2.18.0 (build 2.18.0-189.0.dev) • DevTools version 2.14.0 [✓] Flutter(Channel master,3.1.0-0.0.pre.1279,macOS 12.4 21F79 darwin-x64,locale en-GB) • Flutter 版本 3.1.0-0.0.pre.1279,位于 /Users/aungmyooo/Development /flutter • 上游存储库https://github.com/flutter/flutter.git • 框架修订版 ddeb0b99c5(18 小时前),2022-06-16 13:53:23 -0700 • 引擎修订版 f8c0dc87bc • Dart 版本 2.18.0 (构建 2.18.0-189.0.dev) • DevTools 版本 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/aungmyooo/Library/Android/sdk • Platform android-32, build-tools 31.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822) • All Android licenses accepted. [✓] Android 工具链 - 为 Android 设备开发(Android SDK 版本 31.0.0) • Android SDK 位于 /Users/aungmyooo/Library/Android/sdk • 平台 android-32,构建工具 31.0.0 • Java 二进制位于:/ Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java 版本 OpenJDK 运行时环境(内部版本 11.0.11+0-b60-7590822) • 接受所有 Android 许可证。

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.3 [✓] Xcode - 为 iOS 和 macOS 开发 (Xcode 13.4.1) • Xcode 在 /Applications/Xcode.app/Contents/Developer • CocoaPods 版本 1.11.3

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Chrome - 为网络开发 • Chrome 位于 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822) [✓] Android Studio(版本 2021.1) • Android Studio 位于 /Applications/Android Studio.app/Contents • Flutter 插件可以从以下位置安装:🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart 插件可以从以下位置安装:🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java 版本 OpenJDK 运行时环境(内部版本 11.0.11+0-b60-7590822)

[✓] VS Code (version 1.68.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.42.0 [✓] VS Code(版本 1.68.1) • /Applications/Visual Studio Code.app/Contents 中的 VS Code • Flutter 扩展版本 3.42.0

[✓] Connected device (3 available) • SM N975F (mobile) • RF8M82Y3K9A • android-arm64 • Android 12 (API 31) • macOS (desktop) • macos • darwin-x64 • macOS 12.4 21F79 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 102.0.5005.115 [✓] 连接设备(3 个可用) • SM N975F(移动) • RF8M82Y3K9A • android-arm64 • Android 12 (API 31) • macOS(桌面) • macos • darwin-x64 • macOS 12.4 21F79 darwin-x64 • Chrome(网络) • chrome • web-javascript • Google Chrome 102.0.5005.115

[✓] HTTP Host Availability • All required HTTP hosts are available [✓] HTTP 主机可用性 • 所有必需的 HTTP 主机都可用

• No issues found! • 未发现任何问题!

In the ios folder -> PodFile.在 ios 文件夹 -> PodFile 中。 You will see that the version of platform is 9 and is commented.你会看到平台的版本是 9 并且被注释掉了。 Please uncomment it and set the version to 11.0请取消注释并将版本设置为 11.0

# Uncomment this line to define a global platform for your project
platform :ios, '11.0'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CocoaPods 在 Flutter 项目中找不到 pod“FirebaseCore”的兼容版本 - CocoaPods could not find compatible versions for pod "FirebaseCore" in Flutter Project Flutter:CocoaPods 找不到 pod“Firebase”的兼容版本 - Flutter: CocoaPods could not find compatible versions for pod "Firebase" Flutter:CocoaPods 找不到 pod“ObjectBox”的兼容版本 - Flutter: CocoaPods could not find compatible versions for pod "ObjectBox" pod 安装时出现 Flutter 错误:CocoaPods 找不到 pod“Firebase/CoreOnly”的兼容版本 - Flutter error on pod install: CocoaPods could not find compatible versions for pod "Firebase/CoreOnly" CocoaPods 找不到 pod“FirebaseCore”的兼容版本:为 flutter iOS 构建运行 pod 安装时出错 - CocoaPods could not find compatible versions for pod "FirebaseCore" : error on running pod install for flutter iOS build CocoaPods 找不到 pod“firebase_auth”的兼容版本:在 Podfile 中 - CocoaPods could not find compatible versions for pod "firebase_auth": In Podfile CocoaPods 在 Podfile 中找不到 pod XXXX 的兼容版本 - CocoaPods could not find compatible versions for pod XXXX in Podfile CocoaPods 找不到 pod“GoogleSignIn”的兼容版本:在 Podfile:GoogleSignIn - CocoaPods could not find compatible versions for pod “GoogleSignIn”: In Podfile: GoogleSignIn CocoaPods 找不到 pod“Flipper-Glog”的兼容版本:在 Podfile 中: - CocoaPods could not find compatible versions for pod "Flipper-Glog": In Podfile: 无法为 Flutter 项目构建 ipa [CocoaPods 找不到 pod "GoogleAppMeasurement" 的兼容版本:] - Can't build ipa for Flutter project [CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM