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.
- 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
(atCarthage/Build/
) to your project. -
Add
GoogleSignIn_GoogleSignIn.bundle
to your Xcode project's Copy Bundle Resources build phase. Alerts andGIDSignInButton
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 yourREVERSED_CLIENT_ID
in theGoogleService-Info.plist
file. More details. -
Follow these instructions.
carthage build --use-xcframeworks --no-skip-current
- XCode 12.4
- iOS 9.0