我只是将flutter facebook插件从2.0.0更改为3.0.0,现在执行flutter build时出现POD错误。
需要有关如何调试和修复此问题的帮助
我的POD文件片段
platform :ios, '9.0'
flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
pod 'FBSDKCoreKit', '4.39.1'
pod 'FBSDKLoginKit', '4.39.1'
---此错误消息----
这是错误转储
CocoaPods的输出: ↳ 准备
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Finding Podfile changes
M Flutter
- FBSDKCoreKit
- FBSDKLoginKit
- file_picker
- firebase_analytics
- firebase_auth
- firebase_core
- firebase_crashlytics
- firebase_dynamic_links
- firebase_messaging
- firebase_remote_config
- flutter_facebook_login
- flutter_statusbarcolor
- google_sign_in
- keyboard_visibility
- location
- package_info
- path_provider
- share
- shared_preferences
- url_launcher
Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "FBSDKLoginKit":
In snapshot (Podfile.lock):
FBSDKLoginKit (= 4.39.1)
In Podfile:
FBSDKLoginKit (= 4.39.1)
flutter_facebook_login (from `.symlinks/plugins/flutter_facebook_login/ios`) was resolved to 0.0.1, which depends on
FBSDKLoginKit (~> 5.5)
Specs satisfying the `FBSDKLoginKit (= 4.39.1), FBSDKLoginKit (= 4.39.1), FBSDKLoginKit (~> 5.5)` dependency were found, but
they required a higher minimum deployment target.
/usr/local/Cellar/cocoapods/1.6.1/libexec/bin/pod:22:in `load'
/usr/local/Cellar/cocoapods/1.6.1/libexec/bin/pod:22:in `<main>'
运行Pod安装时出错
我已经清除了缓存,但仍然收到错误消息。
答案 0 :(得分:1)
删除
Podfile.lock
然后运行
pod安装。
对我有用。
我使用
flutter_facebook_login
答案 1 :(得分:0)
您可以尝试在ios
目录中运行以下命令:
您可能需要先删除Podfile.lock
文件(我不确定它是否有帮助,但这是我所做的)。
答案 2 :(得分:0)
要修复使用的两个命令:
-吊舱回购更新
-吊舱更新FBSDKCoreKit
—————————————————————— 在pod repo更新之后:
MacRoberto-8:Nixtelecom robertofonseca $ cd ios
MacRoberto-8:ios robertofonseca $荚更新FBSDKCoreKit
更新本地规格存储库 分析依赖关系 下载依赖项 安装BoringSSL-GRPC(0.0.3) 安装FBSDKCoreKit(5.6.0) 安装FBSDKLoginKit(5.6.0) 安装firebase_core(0.0.1) 。 。 。 。 生成豆荚项目 整合客户项目 吊舱安装完成! Podfile中有14个依赖项,总共安装了37个Pod。
MacRoberto-8:Nixtelecom robertofonseca $迅速构建ios --release
。 。 ===带有配置发布的项目运行器的构建目标运行器===