2013-01-02 21 views
0

我发布了一款在Cocos2d框架上开发的iPad游戏。我已经在多款iPad 3和iPad 2设备上测试过游戏,并且从未遇到任何问题。Cocos2d游戏在某些设备上不启动

现在我收到了一些报告,指出它在某些设备上无法正常启动。人们说他们看到了default.png图片,那么应用程序正在关闭。

任何想法?

+0

想法#1:[crash report。](http://emclstcd.tk) – 2013-01-02 12:37:30

+0

我没有使用过崩溃报告,如何从下载了应用的用户启用崩溃报告。我已经在iTunes连接上看到过它,但是我需要在编程的某个地方启用它。 我测试了大约6个设备上的gae,从未见过崩溃。这似乎正在发生,可能有100个用户中有1个。 –

+0

然后你不会得到任何有用的东西(因为缺少调试符号)。 – 2013-01-02 12:56:16

回答

0

我发现这个问题,这是与它不可用旧设备运行的社会框架做。

0

没有崩溃报告这只是一个猜谜游戏。

通过一切手段尝试在您身边重现问题。

可能出现的问题:

1. If the app takes too long to launch it will be closed by iOS. 
2. If it does not have enough memory it will not launch as well. 

尝试以下操作:

I. Open many other heavy apps in the background so there is not much memory. 
See how it affects your app launch. 

II. During launch try to use as many fast taps as possible and fast gestures. 
There is possibility that very early taps are not serviced properly or at all 
and that can cause the crash. 

III. Test on many devices as you can - especially low end. 
+0

感谢您的回复,我设法找到了问题,当它无法找到在iOS6下运行的设备上显然没有的社交框架时,它崩溃了。 有趣的是,当调用Compose视图控制器时它不会崩溃,因为它在if语句中查看它是否可用,它在查找框架时会崩溃。 任何想法如何我只能导入它,如果它可用...如果这是有道理的? –

+0

我很高兴建议nr III工作。 你可以尝试所谓的弱链接和响应选择器的方法: http://stackoverflow.com/questions/3697058/when-to-use-respondstoselector-in-objective-c http://stackoverflow.com /问题/ 4056761 /如何做 - 检查 - 如果-IOS版本 - 支持库 – sg7