gpt4 book ai didi

objective-c - 没有 bundleID 的 bundle ,SpriteKit

转载 作者:太空狗 更新时间:2023-10-30 03:35:56 26 4
gpt4 key购买 nike

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

no bundle for bundleID: (null)

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

最佳答案

我已经通过使用 Xcode 调试器单步调试我的应用程序来追踪 “no bundle for bundleID: (null)” 消息的来源。

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

这行代码会为我触发它:

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

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

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

关于objective-c - 没有 bundleID 的 bundle ,SpriteKit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32406727/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com