Ios 为什么在我向一个不存在的GC排行榜发送分数时没有报告错误?
我的Game Center游戏经过验证后,为了进行测试,我将向一个排行榜发送分数,该排行榜显然不存在于我的iTunes Connect页面中:Ios 为什么在我向一个不存在的GC排行榜发送分数时没有报告错误?,ios,objective-c,app-store-connect,game-center,gamekit,Ios,Objective C,App Store Connect,Game Center,Gamekit,我的Game Center游戏经过验证后,为了进行测试,我将向一个排行榜发送分数,该排行榜显然不存在于我的iTunes Connect页面中: // Successful authentication here [self reportScore:1000 forLeaderboardID:@"blah blah blah blah"]; 方法如下: -(void)reportScore:(int64_t)score forLeaderboardID:(NSString*)category {
// Successful authentication here
[self reportScore:1000 forLeaderboardID:@"blah blah blah blah"];
方法如下:
-(void)reportScore:(int64_t)score forLeaderboardID:(NSString*)category {
GKScore *scoreReporter = [[GKScore alloc] initWithCategory:category];
scoreReporter.value = score;
scoreReporter.context = 0;
[scoreReporter reportScoreWithCompletionHandler:^(NSError *error) {
if (error == NULL) {
NSLog(@"Score sent successfully");
} else {
NSLog(@"Score submission failed: %@",[error localizedDescription]);
}
}];
}
我越来越
分数发送成功
为什么??我的游戏中绝对没有这样的排行榜
一些事实:
- 我的游戏当然在iTunes Connect中
- 游戏中心似乎在一般情况下工作。我可以进行多人比赛
- 这场比赛没有任何成绩
- 游戏处于沙箱模式
- 我已通过测试用户的身份验证
- iTunes Connect中的游戏确实有一个排行榜,但绝对不是我在上面代码中提到的那个
- 在iPhone5上使用iOS7