nihalahmed / GameCenterManager

iOS Game Center helper singleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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,

Joe
screen shot 2014-04-19 at 10 39 06 am

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.

After upgrading to 5.3 I get the same error for setupManager:
screen shot 2014-04-23 at 3 38 28 pm

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?

#3

I’m seeing the same issue as Ghost was.

Thanks

Joe Fleck