我已经将我的 flutter 包更新到最新版本,现在 IOS 不再工作了。
当我尝试更新 Pod 时,它显示此错误:
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
Firebase/Firestore (~> 6.0) was resolved to 6.0.0, which depends on
Firebase/CoreOnly (= 6.0.0)
cloud_functions (from `.symlinks/plugins/cloud_functions/ios`) was resolved to 0.0.1, which depends on
Firebase/Functions (~> 5.18) was resolved to 5.18.0, which depends on
Firebase/CoreOnly (= 5.18.0)
Run Code Online (Sandbox Code Playgroud)
这是我的 pubspec.yaml(与 Firebase 相关):
firebase_core: "^0.4.0"
firebase_auth: "^0.11.0"
firebase_analytics: "^3.0.0"
cloud_firestore: "^0.11.0+1"
cloud_functions: "^0.3.0" …Run Code Online (Sandbox Code Playgroud) 我想配置Firebase Firestore.我按照所有步骤,但最后一步我得到了错误链接,我提到.
执行此pod后安装以下错误我得到了错误
[!] 因为没有指定平台
ios,所以11.4在目标上自动分配平台版本testing_gowtham.请在Podfile中为此目标指定一个平台.见https://guides.cocoapods.org/syntax/podfile.html#platform.
我的PodFile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testing_gowtham' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for testing_gowtham
target 'testing_gowthamTests' do
inherit! :search_paths
# Pods for testing
end
target 'testing_gowthamUITests' do
inherit! :search_paths
# Pods for testing
end
pod 'Firebase/Core' …Run Code Online (Sandbox Code Playgroud) 我在尝试使用 crashlytics 构建 flutter 应用程序时遇到错误
(但不知何故在 codemagic 上构建成功)\n我做了
这些是我的日志
\n\n\xe2\x95\xb0\xe2\x94\x80$ flutter run\nRunning "flutter pub get" in <my app>_time_reporting... \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 804ms\nLaunching lib/main.dart on iPhone 12 Pro Max in debug mode...\nRunning pod install... \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 \xc2\xa0 1,179ms\nCocoaPods\' output:\n\xe2\x86\xb3\n\xc2\xa0 \xc2\xa0 \xc2\xa0 Preparing\n\n\xc2\xa0 \xc2\xa0 Analyzing dependencies\n\n\xc2\xa0 \xc2\xa0 Inspecting targets …Run Code Online (Sandbox Code Playgroud) 我正在尝试构建一个 IOS flutter 项目,但它一直抱怨 pod 的兼容版本。自过去两天以来,我已经尝试了很多线程,但无法解决该问题。不过我的安卓版本运行良好。
我也尝试删除podfile.lock、podfile、pod文件夹、Runner.xcworkspace,但没有任何效果。现在我不再有podfile.lock文件了。我的意思是podfile.lock没有被创建。
我使用的是 macOS Big Sur 版本 11.6。
MacBook Pro 2019
处理器:2.3 GHz 8 核英特尔酷睿 i9
在我的 Podfile 中:
platform :ios, '10.0'
Run Code Online (Sandbox Code Playgroud)
我还尝试了以下命令:
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
Run Code Online (Sandbox Code Playgroud)
当我运行pod install命令时,出现以下错误。
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
cloud_functions: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_auth: …Run Code Online (Sandbox Code Playgroud) ios ×4
firebase ×3
flutter ×3
cocoapods ×1
crashlytics ×1
flutter-ios ×1
podfile ×1
podspec ×1
swift ×1