ios - Firebase pod 'InAppMessagingDisplay'
问题描述
我在安装 Firebase 新功能“应用内消息”时遇到了困难。尝试pod install
在项目上运行时,出现此错误:
[!] CocoaPods could not find compatible versions for pod "Firebase/InAppMessagingDisplay":
In Podfile:
Firebase/InAppMessagingDisplay
Specs satisfying the `Firebase/InAppMessagingDisplay` dependency were found, but they required a higher minimum deployment target.
这些是我项目中的 pod 文件:
target 'MyProject' do
platform :ios, '10.1'
inhibit_all_warnings!
use_frameworks!
pod 'AlamofireImage', '~> 3.1'
pod 'AKPickerView-Swift', :git => 'https://github.com/Akkyie/AKPickerView-Swift.git', :inhibit_warnings => true
pod 'Firebase/Database', '~> 5.0.0'
pod 'Firebase/Messaging', '~> 5.0.0'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/RemoteConfig'
pod 'Firebase/InAppMessagingDisplay'
pod 'Google/Analytics'
pod 'Protobuf', '~> 3.2', :inhibit_warnings => true
pod 'PromiseKit/CoreLocation', '~> 4.1'
pod 'GoogleConversionTracking'
pod 'FBSDKCoreKit'
pod 'Branch'
pod 'Fabric'
pod 'Crashlytics'
pod 'Apply'
pod 'SnapKit', '>= 4.0.0'
pod 'KeychainSwift', '~> 10.0'
pod 'Bond'
end
我在这里阅读了其他问题并尝试了两种不同的解决方案。首先我尝试了这个: 1. pod repo remove master
2. pod setup
3.pod install
这没有用。得到同样的错误。
然后我尝试了这个:1. pod repo update
2. pod deintegrate
3.pod install
结果相同。
你们中有人遇到过这种情况并知道解决方案吗?
解决方案
您需要以下两个 Firebase SDK 的更高版本才能使用应用内消息传递
pod 'Firebase/Database', '~> 5.0.0'
pod 'Firebase/Messaging', '~> 5.0.0'
推荐阅读
- ruby-on-rails - has_many :通过一次调用在连接表中添加额外的参数(对象创建)
- python - Matplotlib:脚本等待“输入()”时无法操作绘图
- excel - 进行组合并检查每个可行的组合
- session - Redis Sentinel,Standalone 还是 Cluster,哪个最适合 session?
- sql-server - 连接到不同的服务器并使用批量插入
- javascript - JavaScript/NodeJS:检查 instanceof 的父方法
- c# - 来自字节数组 Cocoa 应用 Xamarin C# 的 NSImage 源
- android-studio - 编译错误:“-Xcoroutines 无效:在 1.3 及更高版本中无论如何都启用了协程”
- cqrs - CQRS/ES 系统中的 POST/PUT 响应 REST
- r - 从不平衡的 html 表中提取文本和链接