Firebaseui-ios: FirebaseUI no longer installs properly through CocoaPods

Created on 29 Jan 2021  路  9Comments  路  Source: firebase/FirebaseUI-iOS

Welcome to FirebaseUI and thanks for submitting an issue!

Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.

If your issue concerns the CocoaPods error, "...transitive dependencies that include static binaries", please take a look at any of the following issues and see if your problem is solved: #48, #47, #46, #34, #23.

If not, please feel free to fill in the following info so we can help faster!

Step 1: Are you in the right place?

  • For issues or feature requests related to the code in this repository file a GitHub issue.
  • For general technical questions, post a question on StackOverflow tagged appropriately.
  • For general Firebase discussion, use the firebase-talk google group
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel

Step 2: Describe your environment

  • Objective C or Swift: Swift
  • iOS version: 14.4
  • Firebase SDK version: _____
  • FirebaseUI version: 10.0.1
  • CocoaPods Version: 1.10.1

Step 3: Describe the problem:

Steps to reproduce:

  1. run pod install on below podfile:

Observed Results:

  • What happened? This could be a description, log output, etc.

Analyzing dependencies
Downloading dependencies
Installing AppAuth (1.4.0)
Installing BoringSSL-GRPC (0.0.7)

[!] Error installing BoringSSL-GRPC
[!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/mr/cytqx4857vb9fbt4tf_8c5sm0000gn/T/d20210129-19234-1rphs7q --template=

Cloning into '/var/folders/mr/cytqx4857vb9fbt4tf_8c5sm0000gn/T/d20210129-19234-1rphs7q'...
fatal: the remote end hung up unexpectedly

Expected Results:

  • What did you expect to happen?
    pods to be installed properly. This failure started when I updated to FirebaseUI 10.0.1

Relevant Code:

```
# Uncomment the next line to define a global platform for your project
platform :ios, '14.0'

target 'mFood Vendor' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for mFood Vendor
pod 'FirebaseCore'
pod 'FirebaseAuth'
pod 'FirebaseStorage'
pod 'FirebaseUI'
pod 'FirebaseFirestore'
pod 'FirebaseFirestoreSwift'

end
```

Most helpful comment

Looks like it's already been updated, but was placed in beta when Firebase moved to a unified pod version. You'll need to explicitly specify the version of FirebaseFirestoreSwift, like so:

pod 'FirebaseFirestoreSwift', '= 7.5.0-beta'

All 9 comments

Looks like this is a git issue with BoringSSL, likely caused by GitHub downtime. Are you able to clone the BoringSSL repo manually via git clone https://github.com/google/boringssl.git?

I am able to manually clone it. If I do that, how do I integrate it into CocoaPods as Cocoapods is attempting to download it? Excuse my naivet茅.

fatal: the remote end hung up unexpectedly

This error message indicates the backend you're trying to clone from (in this case GitHub) stopped your clone unexpectedly. There's nothing you can do about this error when it occurs, though you may be able to find a root cause for the error by copying the clone command CocoaPods is running and manually executing it with the verbose flag.

I got a timeout error, the solution was to do pod repo update, give it a try!

pod repo update did not work for me.

When I do a pod update, FirebaseUI gets updated to 10.0.1 and I get a build error

.../Pods/FirebaseUI/Auth/FirebaseAuthUI/FUIAuth.m:341:14: No visible @interface for 'FIRAuth' declares the selector 'useEmulatorWithHost:port:'

If I try to force using FirebaseUI 10.0.2, I get CocoaPods Error

[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
  In Podfile:
    FirebaseCore

    FirebaseFirestoreSwift was resolved to 0.4.0, which depends on
      FirebaseFirestore (>= 1.6.1, ~> 1.6) was resolved to 1.15.0, which depends on
        FirebaseCore (~> 6.2)

    FirebaseUI (~> 10.0.2) was resolved to 10.0.2, which depends on
      FirebaseUI/Auth (= 10.0.2) was resolved to 10.0.2, which depends on
        Firebase/Auth (>= 7.2.0) was resolved to 7.2.0, which depends on
          Firebase/CoreOnly (= 7.2.0) was resolved to 7.2.0, which depends on
            FirebaseCore (= 7.2.0)

    FirebaseUI (~> 10.0.2) was resolved to 10.0.2, which depends on
      FirebaseUI/Auth (= 10.0.2) was resolved to 10.0.2, which depends on
        Firebase/Auth (>= 7.2.0) was resolved to 7.2.0, which depends on
          FirebaseAuth (~> 7.2.0) was resolved to 7.2.0, which depends on
            FirebaseCore (~> 7.0)

@frios, you have incompatible dependencies. You'll need to remove either FirebaseUI or FirebaseFirestoreSwift, as FirebaseFirestoreSwift has not yet been updated to Firebase 7+.

Well that is unfortunate as I use both of those in my app. Any idea what the update timeline is for FirebaseFirestoreSwift?

Looks like it's already been updated, but was placed in beta when Firebase moved to a unified pod version. You'll need to explicitly specify the version of FirebaseFirestoreSwift, like so:

pod 'FirebaseFirestoreSwift', '= 7.5.0-beta'

That did the trick! Thanks so much for the help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tayphoon picture Tayphoon  路  6Comments

Tayphoon picture Tayphoon  路  6Comments

rodrigosol picture rodrigosol  路  3Comments

platoputhur picture platoputhur  路  4Comments

ghost picture ghost  路  7Comments