Trying to sign in crashes and gives me: ''Your app is missing support for the following URL schemes'

See original GitHub issue

I’m running the following code versions on iOS 9:

Installing Google (1.1.0)
Installing GoogleAppUtilities (1.0.0)
Installing GoogleAuthUtilities (1.0.1)
Installing GoogleInterchangeUtilities (1.0.0)
Installing GoogleNetworkingUtilities (1.0.0)
Installing GoogleSignIn (2.3.1)
Installing GoogleSymbolUtilities (1.0.0)
Installing GoogleUtilities (1.1.0)

Here is the crash

 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Your app is missing support for the following URL schemes: com.googleusercontent.apps.514797035410-uksdcup8ju2g0frgqq3f88ieqnvmr2t9'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000106d32f65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010aa48deb objc_exception_throw + 48
    2   CoreFoundation                      0x0000000106d32e9d +[NSException raise:format:] + 205
    3   SlideMail                           0x0000000104d2d678 -[GIDSignIn signInWithOptions:] + 326
    4   SlideMail                           0x0000000104d319b8 -[GIDSignInButton pressed] + 331
    5   UIKit                               0x00000001086681fa -[UIApplication sendAction:to:from:forEvent:] + 92
    6   SlideMail                           0x0000000104b3792f -[UIApplication(EventInterceptor) heap_sendAction:to:from:forEvent:] + 337
    7   UIKit                               0x00000001087cc504 -[UIControl sendAction:to:forEvent:] + 67
    8   UIKit                               0x00000001087cc7d0 -[UIControl _sendActionsForEvents:withEvent:] + 311
    9   UIKit                               0x00000001087cb906 -[UIControl touchesEnded:withEvent:] + 601
    10  UIKit                               0x00000001086d2aa3 -[UIWindow _sendTouchesForEvent:] + 835
    11  UIKit                               0x00000001086d3691 -[UIWindow sendEvent:] + 865
    12  UIKit                               0x0000000108685752 -[UIApplication sendEvent:] + 263
    13  SlideMail                           0x0000000104b377b1 -[UIApplication(EventInterceptor) heap_sendEvent:] + 435
    14  UIKit                               0x0000000108660fcc _UIApplicationHandleEventQueue + 6693
    15  CoreFoundation                      0x0000000106c5f0a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    16  CoreFoundation                      0x0000000106c54fcc __CFRunLoopDoSources0 + 556
    17  CoreFoundation                      0x0000000106c54483 __CFRunLoopRun + 867
    18  CoreFoundation                      0x0000000106c53e98 CFRunLoopRunSpecific + 488
    19  GraphicsServices                    0x000000010be0ead2 GSEventRunModal + 161
    20  UIKit                               0x0000000108666676 UIApplicationMain + 171
    21  SlideMail                           0x00000001048bcb22 main + 162
    22  libdyld.dylib                       0x000000010b88592d start + 1
    23  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

I added the following to my .plist and it’s still crashing.

    <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>com.googleusercontent.apps.514797035410-uksdcup8ju2g0frgqq3f88ieqnvmr2t9</string>
    </array>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:22

github_iconTop GitHub Comments

153reactions
vu0trancommented, Oct 9, 2015

D’oh. Forgot to add the URL schemes shown at the bottom of the tutorial:

https://developers.google.com/identity/sign-in/ios/start-integrating

108reactions
mwaqas01commented, Jan 7, 2017

I had the same issue and resolve it by performing below steps:

Add custom URL schemes to your Xcode project: 1)Open your project configuration: double-click the project name in the left tree view. Select your app from the TARGETS section, then select the Info tab, and expand the URL Types section. Click the + button, and add a URL scheme for your reversed client ID. To find this value, open the GoogleService-Info.plist configuration file, and look for the REVERSED_CLIENT_ID key. Copy the value of that key, and paste it into the URL Schemes box on the configuration page. Leave the other fields blank. When completed, save the file and rebuild the project.

For more detail visit https://firebase.google.com/docs/auth/ios/google-signin

Read more comments on GitHub >

github_iconTop Results From Across the Web

App getting crash when click on GoogleSignIn button
As the error clearly says, your app is missing support for the url schemes. Add the following schemes to your info.plist <key>CFBundleURLTypes</key> <array> ......
Read more >
'Your app is missing support for the following URL schemes ...
Just want to help out as much as possible and give as much information as I can for anyone struggling with the error....
Read more >
Defining a custom URL scheme for your app - Apple Developer
Apple supports common schemes associated with system apps, such as mailto , tel , sms , and facetime . You can define your...
Read more >
'Your app is missing support for the following URL schemes ...
Ios – 'Your app is missing support for the following URL schemes: com .googleusercontent.apps.xxx'. google-signinios. I found the question and answer in ...
Read more >
your app is missing support for the following url schemes
Google Sign-In requires a custom URL Scheme to be added. CFBundleURLSchemes is missing from your info.plist. I experienced the same issue with my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found