Reputation: 11
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?
selector "displayResultWithTicket:finishedWithObject:error:" is unimplemented or misnamed
Assertion failure in void GTMSessionFetcherAssertValidSelector(id _Nullable __strong, SEL _Nullable, ...)(), /Users/macbookpro/Documents/Zaiya/Pods/GTMSessionFetcher/Source/GTMSessionFetcher.m
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'callback selector unimplemented or misnamed'
please share your knowledge, thanks!
actual run error:
Upvotes: 0
Views: 376
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