No Visible @interface for 'GameCenterManager' declares the selector 'initGameCenter'
bendinwire opened this issue · comments
Hello,
I'm trying to integrate GCM into the Mac version of my project (I already have Game Center in the iOS version of my game).
Following the instructions very closely, after I've added the two lines, the second one (initgamecenter) throws the error in the title. Any idea? I can't seem to get it to recognize the methods in the GameCenterManager file (the setDelegate line, however, works fine).
[[GameCenterManager sharedManager] setDelegate:self];
[[GameCenterManager sharedManager] initGameCenter];
Thanks,
As of release 5.3 initGameCenter
is deprecated. Instead, you should use setupManager
or setupManagerAndSetShouldCryptWithKey:
.
I realize that initGameCenter is deprecated in 5.3, but I wanted to support 10.8 users, so I moved back to 5.2. Wouldn’t it be visible for 5.2?
On Apr 23, 2014, at 2:54 PM, Sam Spencer notifications@github.com wrote:
As of release 5.3 initGameCenter is deprecated. Instead, you should use setupManager or setupManagerAndSetShouldCryptWithKey:.
—
Reply to this email directly or view it on GitHub.
Hmm... Have you added the correct import statement?
#import "GameCenterManager.h"
The error message Xcode is showing means that it doesn't know where to find the method. I can't seem to replicate the issue with 5.2 or 5.3 on my computer.
What is your build target? Are you building for Mac 64-bit?