Skip to content

fabio914/GoogleSignIn-iOS

Repository files navigation

Google Sign-In for Carthage / XCFramework

Carthage compatible

This is a dynamic version of the Google Sign-In framework for iOS that is compatible with Carthage. It's a simple framework that includes the original GoogleSignIn-iOS Swift Package dependency.

Installation

  • Add this line to your Cartfile:
github "https://github.com/fabio914/GoogleSignIn-iOS" == 6.0.2
  • Update your dependencies:
$ carthage update GoogleSignIn-iOS --use-xcframeworks
  • Add GoogleSignIn.xcframework (at Carthage/Build/) to your project.

  • Add GoogleSignIn_GoogleSignIn.bundle to your Xcode project's Copy Bundle Resources build phase. Alerts and GIDSignInButton won't work without it.

  • In the Project > Target > Info > URL Types panel, create a new item and paste your REVERSED_CLIENT_ID into the URL Schemes field. You can find your REVERSED_CLIENT_ID in the GoogleService-Info.plist file. More details.

  • Follow these instructions.

Building XCFramework with Carthage

carthage build --use-xcframeworks --no-skip-current

Version

  • XCode 12.4
  • iOS 9.0