FirebaseUI-iOS icon indicating copy to clipboard operation
FirebaseUI-iOS copied to clipboard

Recent update to FirebaseUI 8.4 causes conflicts with Geofire 3.0 pod

Open SAPIENTechnologies opened this issue 6 years ago • 2 comments

Recent update to FirebaseUI 8.4 causes conflicts with Geofire 3.0 pod.

I have installed FirebaseUI 8.4 but when I run pod install or update I get:

[!] CocoaPods could not find compatible versions for pod "Firebase/Database": In Podfile: Firebase/Database

FirebaseUI (~> 8.0) was resolved to 8.0.1, which depends on
  FirebaseUI/Database (= 8.0.1) was resolved to 8.0.1, which depends on
    Firebase/Database (~> 6.0)

GeoFire (~> 3.0) was resolved to 3.0.0, which depends on
  Firebase/Database (~> 5.0)

Step 2: Describe your environment

  • Objective C or Swift: Swift
  • iOS version: 13.2.2
  • Firebase SDK version: _____
  • FirebaseUI version: 8.4
  • CocoaPods Version: 1.8.3

Step 3: Describe the problem:

Steps to reproduce:

Clearing out pod cache and current pods to make sure everything is up to date.

rm -rf "${HOME}/Library/Caches/CocoaPods" rm -rf "pwd/Pods/" pod update

Observed Results:

Error installing pod

Expected Results:

Clean installation of latest pod files

Relevant Code:

This is my pod file

Uncomment the next line to define a global platform for your project

platform :ios, '11.0'

target 'mFood Vendor' do

Comment the next line if you're not using Swift and don't want to use dynamic frameworks

use_frameworks!

Pods for mFood Vendor

pod 'Firebase/Analytics' pod 'Firebase/Core' pod 'Firebase/RemoteConfig' pod 'Firebase/Database' pod 'Firebase/Messaging' pod 'FirebaseUI', '~> 8.0'

pod 'FBSDKCoreKit' pod 'FBSDKLoginKit' pod 'FBSDKShareKit'

pod 'GeoFire', '~> 3.0' pod 'FontAwesome.swift' pod 'Toast-Swift' pod 'KeychainAccess' pod 'SwiftValidator', :git => 'https://github.com/jpotts18/SwiftValidator.git', :branch => 'master' pod 'ReachabilitySwift' pod 'Crashlytics'

target 'mFood VendorTests' do inherit! :search_paths # Pods for testing end

end

SAPIENTechnologies avatar Nov 15 '19 17:11 SAPIENTechnologies

You can probably work around this by using subspecs of FirebaseUI to exclude FirebaseUI/Database.

I'll look at updating the GeoFire podspec.

morganchen12 avatar Nov 15 '19 18:11 morganchen12

Using the following subspec:

Only pull in FirebaseUI Auth features

pod 'FirebaseUI/Auth', '~> 8.0'

Only pull in Facebook login features

pod 'FirebaseUI/Facebook', '~> 8.0'

Only pull in Google login features

pod 'FirebaseUI/Google', '~> 8.0'

Still has issues with GeoFire:

[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":   In Podfile:     FirebaseUI/Auth (~> 8.0) was resolved to 8.4.0, which depends on       Firebase/Auth (~> 6.0) was resolved to 6.0.0, which depends on         Firebase/CoreOnly (= 6.0.0)

    GeoFire (~> 3.0) was resolved to 3.0.0, which depends on       Firebase/Database (~> 5.0) was resolved to 5.0.0, which depends on         Firebase/CoreOnly (= 5.0.0)

CocoaPods could not find compatible versions for pod "FirebaseCore":   In Podfile:     FirebaseUI/Auth (~> 8.0) was resolved to 8.4.0, which depends on       Firebase/Auth (~> 6.0) was resolved to 6.0.0, which depends on         Firebase/CoreOnly (= 6.0.0) was resolved to 6.0.0, which depends on           FirebaseCore (= 6.0.0)

    FirebaseUI/Auth (~> 8.0) was resolved to 8.4.0, which depends on       Firebase/Auth (~> 6.0) was resolved to 6.0.0, which depends on         FirebaseAuth (~> 6.0.0) was resolved to 6.0.0, which depends on           FirebaseCore (~> 6.0)

Regards, [email protected] mailto:[email protected]

On Nov 15, 2019, at 10:40 AM, Morgan Chen <[email protected] mailto:[email protected] > wrote:

You can probably work around this by using subspecs of FirebaseUI to exclude FirebaseUI/Database.

I'll look at updating the GeoFire podspec.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

http://schema.org

SAPIENTechnologies avatar Nov 15 '19 18:11 SAPIENTechnologies