【问题标题】:No bundle for bundleID, SpriteKitbundleID、SpriteKit 没有捆绑包
【发布时间】:2015-09-04 21:17:54
【问题描述】:

每次我在 SpriteKit 游戏中移动到特定场景时,我都会在控制台中收到以下错误:

bundleID 没有捆绑包:(null)

这可能是什么原因? ..为什么总是在那个特定的场景? 谢谢

【问题讨论】:

  • 尝试清理你的项目。

标签: objective-c sprite-kit skspritenode


【解决方案1】:

通过使用 Xcode 调试器单步调试我的应用程序,我找到了 "no bundle for bundleID: (null)" 消息的来源。

每次我报告成就时都会发生这种情况。

这行代码会为我触发:

[ GKAchievement reportAchievements:achievements withCompletionHandler:^(NSError *error) {
    if ( error != 0 )
        NSLog( @"Reporting of %@ failed: %@", achievement, [ error localizedDescription ] );
}];

也就是说,我很确定这是良性的,因为我的成就和排行榜都运行良好。

附带说明:当我报告 GKScore 而不是 GKAchievement 时,我没有看到相同的警告消息。

【讨论】:

    猜你喜欢
    • 2021-08-08
    • 1970-01-01
    • 1970-01-01
    • 2010-10-15
    • 2012-01-08
    • 1970-01-01
    • 1970-01-01
    • 2012-06-29
    • 2016-09-03
    相关资源
    最近更新 更多