我在安装Firebase新功能"In-App Messaging“时遇到了困难。当试图在项目上运行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具有相同的结果。
你们中有谁经历过这件事并知道解决办法吗?
发布于 2018-08-24 07:33:38
减少您的Podfile使其成为一个MCVE,我们可以简单地再现这个问题:
target 'MyProject' do
pod 'Firebase/InAppMessagingDisplay'
end那么让我们来看一下规范:
→https://cocoapods.org/pods/Firebase
→https://github.com/CocoaPods/Specs/blob/master/Specs/0/3/5/Firebase/5.6.0/Firebase.podspec.json
"FirebaseInAppMessaging": "0.11.0"上的→依赖关系
→https://cocoapods.org/pods/FirebaseInAppMessaging
将https://firebase.google.com/docs/in-app-messaging/重定向到→
这意味着Firebase/InAppMessagingDisplay依赖于谷歌删除的另一个规范。为证明移除:
$ pod回购更新 $ pod搜索FirebaseInAppMessaging 好了!无法找到与
FirebaseInAppMessaging匹配的名称、作者、摘要或描述的荚
但是这个规范是存在的,它是九天前(2018年8月16日,凌晨12:38 GMT+8)在:https://github.com/CocoaPods/Specs/blob/master/Specs/2/a/8/FirebaseInAppMessaging/0.11.0/FirebaseInAppMessaging.podspec.json添加的。所以有些人可能会把它藏起来。
我建议你联系谷歌,问问他们什么时候恢复FirebaseInAppMessaging。同时,你不能使用它。
发布于 2018-08-23 18:23:06
您需要以下两个Firebase SDKs的更高版本才能使用应用程序内消息传递
pod 'Firebase/Database', '~> 5.0.0'
pod 'Firebase/Messaging', '~> 5.0.0'发布于 2018-09-06 12:05:49
pod 'Firebase/Core', '~> 5.7.0'
pod 'Firebase/InAppMessagingDisplay'为我工作过。
https://stackoverflow.com/questions/51989988
复制相似问题