I'm having difficulties installing Firebase new feature "In-App Messaging".
When trying to run pod install
on the project, I get this error:
[!] 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.
These are the pod files in my project:
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
I've read other questions in here and tried two different solutions.
First I tried this:
1. pod repo remove master
2. pod setup
3. pod install
Which didn't work. Got the same error.
Then I tried this:
1. pod repo update
2. pod deintegrate
3. pod install
With the same result.
Have any of you experienced this and know a solution?
Reducing your Podfile to make it an MCVE, we can reproduce the issue with simply:
target 'MyProject' do
pod 'Firebase/InAppMessagingDisplay'
end
So let's look at the specs:
→ https://cocoapods.org/pods/Firebase
→ https://github.com/CocoaPods/Specs/blob/master/Specs/0/3/5/Firebase/5.6.0/Firebase.podspec.json
→ Dependency on "FirebaseInAppMessaging": "0.11.0"
→ https://cocoapods.org/pods/FirebaseInAppMessaging
→ Redirection to https://firebase.google.com/docs/in-app-messaging/
Which means Firebase/InAppMessagingDisplay
has a dependency on another spec that got REMOVED by Google. To demonstrate the removal:
$ pod repo update
$ pod search FirebaseInAppMessaging
[!] Unable to find a pod with name, author, summary, or description matchingFirebaseInAppMessaging
But this spec exists, it was added nine days ago (Aug 16, 2018, 12:38 AM GMT+8) at: https://github.com/CocoaPods/Specs/blob/master/Specs/2/a/8/FirebaseInAppMessaging/0.11.0/FirebaseInAppMessaging.podspec.json. So some people may have it in cache.
I suggest you contact Google and ask them when they will restore FirebaseInAppMessaging
. In the mean time, you can't use it.