Firebase-ios-sdk: Is FirebaseGoogleSignIn missing from the Swift Package Manager distribution?

Created on 16 Sep 2020  路  11Comments  路  Source: firebase/firebase-ios-sdk

Step 0: Are you in the right place?

  • For issues or feature requests related to __the code in this repository__
    file a Github issue.

    • If this is a __feature request__ please use the Feature Request template.

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general (non-iOS) Firebase discussion, use the firebase-talk
    google group.
  • For backend issues, console issues, and other non-SDK help that does not fall under one
    of the above categories, reach out to
    Firebase Support.
  • Once you've read this section and determined that your issue is appropriate for
    this repository, please delete this section.

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.0 GM seed (12A7209)
  • Firebase SDK version: 6.32-spm-beta
  • Firebase Component: Auth (Auth, Core, Database, Firestore, Messaging, Storage, etc)
  • Component version: ?
  • Installation method: Swift Package Manager

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

With Xcode 12 now available as a GM, I'm looking into using SPM for integrating Firebase. I removed these five lines from my Cartfile:

binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseGoogleSignInBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseProtobufBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseRemoteConfigBinary.json"

Then I added the Swift package as described in the docs. But I don't see GoogleSignIn available anywhere and my builds fail with it missing.

Sorry if I'm missing something, but is this just not supported yet?

Relevant Code:

Code is as seen at https://firebase.google.com/docs/auth/ios/google-signin.

GoogleSignIn Swift Package Manager auth

Most helpful comment

Any new updates about GoogleSignIn version for swift package manager @paulb777 ?

All 11 comments

Right, GoogleSignIn does not yet have Swift PM support yet.

We're following up with the GoogleSignIn team and will update here when we have more detail.

Has there been any new information from the GoogleSignIn team?

googlesamples/google-services#484

Any new update on this @paulb777 ?

The GoogleSignIn team is investigating, but nothing specific I can share about future plans.

@paulb777 @piers12

Though I am still waiting for the GoogleSignIn team's version, I've got along well with https://github.com/sugarpac/SwiftGoogleSignIn based on https://github.com/CocoaPods/Specs/blob/master/Specs/d/4/0/GoogleSignIn/5.0.2/GoogleSignIn.podspec.json. Inside it, https://github.com/sugarpac/GTMAppAuth is used instead of https://github.com/google/GTMAppAuth as a minimum platform update from iOS 8 to iOS 9 is requested for compiling.

Try adding https://github.com/sugarpac/SwiftGoogleSignIn.git to your package dependencies, and use GoogleSignIn.

Any new updates about GoogleSignIn version for swift package manager @paulb777 ?

I've the impression this framework is abandoned; is there an alternative to GoogleSignIn which allow login with Google in mobile apps?

GoogleSignIn continues to be distributed via CocoaPods and a binary distribution. Swift Package Manager support is being investigated.

I've checked firebase sdk using swift pm, but I can't see GoogleSignIn be available to install via swift pm. When will GoogleSignIn can be install via swift pm?

Was this page helpful?
0 / 5 - 0 ratings