firebase-ios-sdk: Error GTMSessionFetcher unrecognized when login and sign-up

Describe your environment

  • Swift
  • iOS version: 11.4
  • Firebase (5.6.0)
  • FirebaseAuth (5.0.3)
  • GoogleSignIn (4.1.2)

Describe the problem

Currently, The project use Firebase (5.0.1), Firebase/Auth (5.0.1), GoogleSignIn (4.1.2 and it working well but after update to Firebase (5.6.0), FirebaseAuth (5.0.3) I got the issue.

Steps to reproduce:

Auth.auth().fetchProviders(forEmail: email)

Observed Results:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GTMSessionFetcher setFetcher:forTask:]: unrecognized selector sent to instance 0x7f9952cc5410'
  *** First throw call stack:
(
	0   CoreFoundation                      0x000000010e6811e6 __exceptionPreprocess + 294
	1   libobjc.A.dylib                     0x000000010dd1e031 objc_exception_throw + 48
	2   CoreFoundation                      0x000000010e702784 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x000000010e603898 ___forwarding___ + 1432
	4   CoreFoundation                      0x000000010e603278 _CF_forwarding_prep_0 + 120
	5   GTMSessionFetcher                   0x0000000109966cec -[GTMSessionFetcherService fetcherDidBeginFetching:] + 396
	6   GTMSessionFetcher                   0x0000000109941d2d -[GTMSessionFetcher beginFetchMayDelay:mayAuthorize:] + 10845
	7   GTMSessionFetcher                   0x000000010993e260 -[GTMSessionFetcher beginFetchWithCompletionHandler:] + 320
	8   Pomelo                              0x0000000104478a28 -[FIRAuthBackendRPCIssuerImplementation asyncPostToURLWithRequestConfiguration:URL:body:contentType:completionHandler:] + 1000
	9   Pomelo                              0x000000010447bfae -[FIRAuthBackendRPCImplementation postWithRequest:response:callback:] + 1070
	10  Pomelo                              0x0000000104478d46 -[FIRAuthBackendRPCImplementation createAuthURI:callback:] + 294
	11  Pomelo                              0x0000000104477969 +[FIRAuthBackend createAuthURI:callback:] + 121
	12  Pomelo                              0x000000010445ed06 __45-[FIRAuth fetchProvidersForEmail:completion:]_block_invoke + 230
	13  libdispatch.dylib                   0x000000010fe747ab _dispatch_call_block_and_release + 12
	14  libdispatch.dylib                   0x000000010fe757ec _dispatch_client_callout + 8
	15  libdispatch.dylib                   0x000000010fe7dbe5 _dispatch_queue_serial_drain + 1305
	16  libdispatch.dylib                   0x000000010fe7e4fa _dispatch_queue_invoke + 328
	17  libdispatch.dylib                   0x000000010fe7a344 _dispatch_queue_override_invoke + 726
	18  libdispatch.dylib                   0x000000010fe8136c _dispatch_root_queue_drain + 664
	19  libdispatch.dylib                   0x000000010fe81076 _dispatch_worker_thread3 + 132
	20  libsystem_pthread.dylib             0x000000011039f1ca _pthread_wqthread + 1387
	21  libsystem_pthread.dylib             0x000000011039ec4d start_wqthread + 13
)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (6 by maintainers)

Most upvoted comments

I just had the exact same error, it turns out the NewRelic sdk was the culprit. After removing the NewRelic pod I was able to login using Firebase without crashing.

The issue still exist in the latest version of NewRelic (6.6.0) and Firebase (6.1.0) and FirebaseStorage (3.2.1)

Screen Shot 2019-06-11 at 11 53 41 AM