我在安装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-23 16:06:00
尝试使用pod install —repo-update,它可以解决您的问题。
https://stackoverflow.com/questions/51989988
复制相似问题