【发布时间】:2015-10-16 19:26:44
【问题描述】:
我最近决定将成就添加到已在 App Store 上架多年的游戏中,但我无法让它们发挥作用。
我正在使用以下代码发布成就:
GKAchievement *achievement = [[GKAchievement alloc] initWithIdentifier: identifier];
[achievement setPercentComplete:100.0];
[GKAchievement reportAchievements:@[achievement] withCompletionHandler:^(NSError *error){
}];
但是reportAchievements 只是记录no bundle for bundleID: (null)。
我想知道这是否与成就尚未上线以及 Apple 已移除沙盒服务器这一事实有关。但它们已在 iTunes Connect 中注册,我使用的是测试用户。
还需要注意的是,此应用是从其他开发者那里转移过来的。
对于我尝试使用的应用 ID:
com.olddeveloper.ach_idcom.olddeveloper.appid.ach_idach_idcom.newdeveloper.ach_idcom.newdeveloper.appid.ach_id
在转移之前一直存在的排行榜仍然有效,它使用旧的开发者 ID。
我什至尝试使用第一个答案here 中的代码获取所有成就的列表,但它仍然显示no bundle for bundleID: (null)。
编辑:
我发现即使它显示no bundle for bundleID: (null),它仍然正确返回所有成就的列表。我认为此消息只是系统中的一些小故障,并且它仍然有效。
也就是说,我仍然无法使用任何 ID 组合解锁成就。
【问题讨论】:
标签: ios app-store-connect game-center