FirebaseUI-iOS icon indicating copy to clipboard operation
FirebaseUI-iOS copied to clipboard

Error when fetch providers with email

Open bank18651 opened this issue 8 years ago • 3 comments

Describe your environment

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

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
)

bank18651 avatar Aug 17 '18 08:08 bank18651

Looks like your project may be missing the -ObjC flag in Other Linker Flags. How are you integrating FirebaseUI?

morganchen12 avatar Aug 17 '18 17:08 morganchen12

@morganchen12 I also have -ObjC flag in Other Linker Flags. The project is not use FirebaseUI. 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.

bank18651 avatar Aug 20 '18 02:08 bank18651

I will move this post to firebase-ios-sdk

bank18651 avatar Aug 20 '18 03:08 bank18651