Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-[GKPlayerInternal setAuthenticateHandler:]: unrecognized selector sent to instance

Get error SIGABRT with this log: "-[GKPlayerInternal setAuthenticateHandler:]: unrecognized selector sent to instance"

I test this on iPad 3 iOS 5.1.1

GKLocalPlayer* localPlayer = [GKLocalPlayer localPlayer];
localPlayer.authenticateHandler = ^(UIViewController *viewController, NSError *error)  //error here
{ /* some code */ };

On iOS 6 this work fine

like image 311
Sinba Avatar asked Dec 29 '25 17:12

Sinba


1 Answers

I'm glad you mentioned you're trying this with iOS 5.

According to Apple's documentation, "authenticateHandler" is iOS 6 and newer only.

like image 125
Michael Dautermann Avatar answered Jan 01 '26 06:01

Michael Dautermann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!