GameKit in watchOS3, player never get authenticated

Hello

I can not get game center working in watchOS3, I've followed the same example as WWDC videos as follows:

let localPlayer = GKLocalPlayer.localPlayer()

print("***** authenticating LocalPlayer")

localPlayer.authenticateHandler = { error in

if let error = error {

print("***** auth failed \(error)")

}

else {

print("***** auth successful \(localPlayer)")

}

}

No matter what I do, companion iOS authenticates without any problem, but in watch extension never happends.


Any idea, does it even work or it's a bug?

Replies

I am also having this problem. The primary iOS app authenticates fine, but when I set the authenticateHandler on the apple watch, it returns an error 3 ("The requested operation could not be completed due to an error communicating with the server.") and the console shows an error 6 ("The requested operation could not be completed because local player has not been authenticated.").


I also get a red error icon when I try to enable the Game Center Capabilities for the Apple Watch extension.


Any ideas?