Deej
Deej

Reputation: 11

IOS Google OAuth error occured after 1 success authentication

I was trying to make a Google authentication with swift to get message list. However i follow all steps in Google here

after i run in simulator and success logging in to my account authentication was successful. then problem appears after all success which is weird. does any knows how to fix this?

  1. selector "displayResultWithTicket:finishedWithObject:error:" is unimplemented or misnamed

  2. Assertion failure in void GTMSessionFetcherAssertValidSelector(id _Nullable __strong, SEL _Nullable, ...)(), /Users/macbookpro/Documents/Zaiya/Pods/GTMSessionFetcher/Source/GTMSessionFetcher.m

  3. Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'callback selector unimplemented or misnamed'

please share your knowledge, thanks!

actual run error:

enter image description here

Upvotes: 0

Views: 376

Answers (1)

Justin Buhl
Justin Buhl

Reputation: 73

I ran into the same problem. I believe it's because Google hasn't updated the Quickstart for Swift 3 yet.

Change: displayResultWithTicket:finishedWithObject:error: to #selector([Your View Controller Name Here].displayResultWithTicket(ticket:finishedWithObject:error:)), which is in line with the new Swift 3 syntax

Upvotes: 2

Related Questions