游戏不被游戏中心认可 [英] the game is not recognized by game center

查看:160
本文介绍了游戏不被游戏中心认可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想游戏中心添加到我的iPhone应用程序。
我也做了以下步骤

Hi I am trying to add game center to my iphone app. I have done the following steps

1)我已添加的应用程序到我的itnuesAccount结果
2)我分配捆绑ID作为net.myCompany.myGameCenter结果
3)我使用相同的net.myCompany.myGameCenter作为捆绑标识符在我的Info.plist结果
4)使用所提供的样品code 苹果我增加了认证步骤。

1) I have added an app to my itnuesAccount
2) I assigned the Bundle ID as net.myCompany.myGameCenter
3) I am using the same "net.myCompany.myGameCenter" as Bundle identifier in my info.plist
4) using the sample code provided by apple i added the authentication steps.


self.currentLeaderBoard= kEasyLeaderboardID;

 self.currentScore= 0;

 [super viewDidLoad];
 if([GameCenterManager isGameCenterAvailable])
 {
  self.gameCenterManager= [[[GameCenterManager alloc] init] autorelease];
  [self.gameCenterManager setDelegate: self];
  [self.gameCenterManager authenticateLocalUser];

  [self updateCurrentScore];
 }
 else
 {
  [self showAlertWithTitle: @"Game Center Support Required!"
       message: @"The current device does not support Game Center, which this sample requires."];
 }
 

我试图把kEasyLeaderboardID值等于我把自己在创造新的领导人板之一。
我想另外一个,我在步骤2中定义。 myComap

I have tried putting the kEasyLeaderboardID value equal to the one that i placed myself upon creating the new leader board. I tried the other one, that i defined at step2. "myComap"

推荐答案

啊我的坏
在iTunes的BundleId连接和一个在info.plist中必须是相同的
并且leaderboardID用于提交和观看得分

Ah my bad the BundleId at the iTunes connect and the one in the info.plist have to be same and the leaderboardID is used for for submitting and viewing the score.

这篇关于游戏不被游戏中心认可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆