firebase-ios-sdk: Google sign in with the Firebase iOS 5.0 pods no longer works.
- Xcode version: 9.3.1
- Firebase SDK version: 5.0.0
- Firebase Component: Auth
- Component version: 5.0.0
I just updated my pods and migrated all my API’s to the Firebase iOS 5.0 API and Google Sign In no longer works. Following the Firebase iOS guide setting the GIDSignIn client ID
GIDSignIn.sharedInstance().clientID = FirebaseApp.app()?.options.clientID
causes a crash due to an unrecognized selector.
2018-05-12 16:54:03.492809-0600 App[66365:6095576] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryI gtm_httpArgumentsString]: unrecognized selector sent to instance 0x6040002778c0'
*** First throw call stack:
(
0 CoreFoundation 0x0000000118e6b1e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x0000000117206031 objc_exception_throw + 48
2 CoreFoundation 0x0000000118eec784 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x0000000118ded898 ___forwarding___ + 1432
4 CoreFoundation 0x0000000118ded278 _CF_forwarding_prep_0 + 120
5 App 0x000000010bb6c69e -[GIDRuntimeConfigFetcher initWithSDKVersion:clientID:bundleID:] + 250
6 App 0x000000010bb6e5a7 -[GIDSignIn fetchRuntimeConfigWithHandler:] + 142
7 App 0x000000010bb6e05e -[GIDSignIn setClientID:] + 260
8 App 0x000000010adfdc70 _T03App14SystemServicesC011setupGoogleC033_7DEEA921CB63ACD09AF6046D0108E167LLyyFZ + 944
9 App 0x000000010adfd682 _T03App14SystemServicesC6createACyFZ + 98
10 App 0x000000010b2cfb00 _T03App06ClientA8DelegateC11applicationSbSo13UIApplicationC_s10DictionaryVySC0E16LaunchOptionsKeyVypGSg022didFinishLaunchingWithH0tF + 64
11 App 0x000000010b2d026a _T03App06ClientA8DelegateC11applicationSbSo13UIApplicationC_s10DictionaryVySC0E16LaunchOptionsKeyVypGSg022didFinishLaunchingWithH0tFTo + 186
12 UIKit 0x000000011410e75b -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 278
13 UIKit 0x00000001141101d2 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4123
14 UIKit 0x000000011411562b -[UIApplication _runWithMainScene:transitionContext:completion:] + 1677
15 UIKit 0x00000001144d7e4a __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
16 UIKit 0x00000001148aa909 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
17 UIKit 0x00000001144d7a86 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
18 UIKit 0x00000001144d82a7 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 675
19 UIKit 0x0000000114e494d4 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 299
20 UIKit 0x0000000114e4936e -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 433
21 UIKit 0x0000000114b2d62d __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221
22 UIKit 0x0000000114d28387 _performActionsWithDelayForTransitionContext + 100
23 UIKit 0x0000000114b2d4f7 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 223
24 UIKit 0x00000001148a9fb0 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
25 UIKit 0x0000000114113f0c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
26 UIKit 0x00000001146e6a97 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
27 FrontBoardServices 0x000000011bf192f3 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 331
28 FrontBoardServices 0x000000011bf21cfa __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 225
29 libdispatch.dylib 0x000000011b0ad848 _dispatch_client_callout + 8
30 libdispatch.dylib 0x000000011b0b2e14 _dispatch_block_invoke_direct + 592
31 FrontBoardServices 0x000000011bf4d470 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
32 FrontBoardServices 0x000000011bf4d12e -[FBSSerialQueue _performNext] + 439
33 FrontBoardServices 0x000000011bf4d68e -[FBSSerialQueue _performNextFromRunLoopSource] + 45
34 CoreFoundation 0x0000000118e0dbb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
35 CoreFoundation 0x0000000118df24af __CFRunLoopDoSources0 + 271
36 CoreFoundation 0x0000000118df1a6f __CFRunLoopRun + 1263
37 CoreFoundation 0x0000000118df130b CFRunLoopRunSpecific + 635
38 GraphicsServices 0x000000011c393a73 GSEventRunModal + 62
39 UIKit 0x00000001141170b7 UIApplicationMain + 159
40 App 0x000000010ada6eb7 main + 55
41 libdyld.dylib 0x000000011b12a955 start + 1
42 ??? 0x0000000000000001 0x0 + 1
Here is a list of my Firebase/Google pod versions:
- Firebase/Analytics (5.0.0):
- Firebase/Core
- Firebase/Auth (5.0.0):
- Firebase/CoreOnly
- FirebaseAuth (= 5.0.0)
- Firebase/Core (5.0.0):
- Firebase/CoreOnly
- FirebaseAnalytics (= 5.0.0)
- Firebase/CoreOnly (5.0.0):
- FirebaseCore (= 5.0.0)
- Firebase/Database (5.0.0):
- Firebase/CoreOnly
- FirebaseDatabase (= 5.0.0)
- Firebase/DynamicLinks (5.0.0):
- Firebase/Core
- FirebaseDynamicLinks (= 3.0.0)
- Firebase/Functions (5.0.0):
- Firebase/CoreOnly
- FirebaseFunctions (= 2.0.0)
- Firebase/Messaging (5.0.0):
- Firebase/CoreOnly
- FirebaseMessaging (= 3.0.0)
- Firebase/RemoteConfig (5.0.0):
- Firebase/Core
- FirebaseRemoteConfig (= 3.0.0)
- Firebase/Storage (5.0.0):
- Firebase/CoreOnly
- FirebaseStorage (= 3.0.0)
- FirebaseABTesting (2.0.0):
- FirebaseCore (~> 5.0)
- Protobuf (~> 3.5)
- FirebaseAnalytics (5.0.0):
- FirebaseCore (~> 5.0)
- FirebaseInstanceID (~> 3.0)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- nanopb (~> 0.3)
- FirebaseAuth (5.0.0):
- FirebaseCore (~> 5.0)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseCore (5.0.0):
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- FirebaseDatabase (5.0.0):
- FirebaseCore (~> 5.0)
- leveldb-library (~> 1.18)
- FirebaseDynamicLinks (3.0.0):
- FirebaseAnalytics (~> 5.0)
- FirebaseFunctions (2.0.0):
- FirebaseCore (~> 5.0)
- GTMSessionFetcher/Core (~> 1.1)
- FirebaseInstanceID (3.0.0):
- FirebaseCore (~> 5.0)
- FirebaseMessaging (3.0.0):
- FirebaseCore (~> 5.0)
- FirebaseInstanceID (~> 3.0)
- GoogleToolboxForMac/Logger (~> 2.1)
- Protobuf (~> 3.1)
- FirebaseRemoteConfig (3.0.0):
- FirebaseABTesting (~> 2.0)
- FirebaseAnalytics (~> 5.0)
- FirebaseCore (~> 5.0)
- FirebaseInstanceID (~> 3.0)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- Protobuf (~> 3.5)
- FirebaseStorage (3.0.0):
- FirebaseCore (~> 5.0)
- GTMSessionFetcher/Core (~> 1.1)
- GoogleSignIn (4.1.2):
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
- "GoogleToolboxForMac/NSString+URLArguments (~> 2.1)"
- GTMOAuth2 (~> 1.0)
- GTMSessionFetcher/Core (~> 1.1)
- GoogleToolboxForMac/Core (2.1.4):
- GoogleToolboxForMac/Defines (= 2.1.4)
- GoogleToolboxForMac/DebugUtils (2.1.4):
- GoogleToolboxForMac/Defines (= 2.1.4)
- GoogleToolboxForMac/Defines (2.1.4)
- GoogleToolboxForMac/Logger (2.1.4):
- GoogleToolboxForMac/Defines (= 2.1.4)
- "GoogleToolboxForMac/NSData+zlib (2.1.4)":
- GoogleToolboxForMac/Defines (= 2.1.4)
- "GoogleToolboxForMac/NSDictionary+URLArguments (2.1.4)":
- GoogleToolboxForMac/DebugUtils (= 2.1.4)
- GoogleToolboxForMac/Defines (= 2.1.4)
- "GoogleToolboxForMac/NSString+URLArguments (= 2.1.4)"
- "GoogleToolboxForMac/NSString+URLArguments (2.1.4)"
- GTMOAuth2 (1.1.6):
- GTMSessionFetcher (~> 1.1)
- GTMSessionFetcher (1.1.15):
- GTMSessionFetcher/Full (= 1.1.15)
- GTMSessionFetcher/Core (1.1.15)
- GTMSessionFetcher/Full (1.1.15):
- GTMSessionFetcher/Core (= 1.1.15)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 26 (10 by maintainers)
Thank you for the help. It seems to have taken care of another related problem as well!
Thanks @siburb
It looks like this regressed on CocoaPods master before the beta was published. I verified that a mid-July version of master was correct, but it is now broken again. I’ll reopen https://github.com/CocoaPods/CocoaPods/issues/7850 and investigate there.
Thank you for the help. It seems to have taken care of another related problem as well!