ipa文件导致游戏崩溃,但从Xcode运行正常吗? [英] Gameplay Crashes From ipa file but runs fine from Xcode?

查看:125
本文介绍了ipa文件导致游戏崩溃,但从Xcode运行正常吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在情况有些尴尬。

当我直接将项目从Xcode运行到设备上时,它运行完美,没有崩溃。但是,当我创建该项目的ipa文件并通过iTunes使用该ipa将其安装到设备中时,这仅是在我第一次启动游戏屏幕时崩溃,后来在我启动游戏时它运行正常。

When I run my project directly from Xcode to my device it runs perfect without any crashs. But when I create an ipa file of that project and install that ipa into my device by using iTunes, only for the first time when I launch my gameplay screen it crashes, later on when I starts my gameplay it runs fine.

记住,我的游戏开始于用户浏览2个初始屏幕后,在两种情况下都可以正常工作。 (即从Xcode或ipa文件运行)。

Remember, my gameplay starts after the user navigates 2 initial screens which works pretty fine in either conditions. (i.e running from Xcode or from ipa file).

我不明白的是,如果问题出在我的游戏类的init方法中,为什么当它不崩溃时,我直接从Xcode运行它。作为ipa或从Xcode运行时,是否有任何代码压缩或不同的代码编译机制。

What I dont understand is that if the problem is in my init method of the gameplay class why it does not crashes when I run it directly from Xcode. Is there any code compression or different mechanism of code compilation when running as an ipa or from Xcode.

任何帮助将不胜感激。

谢谢

推荐答案

正如adig所说,从设备获取崩溃日志,然后将其符号化。您将看到导致崩溃的调用堆栈和线路。您可以在项目中设置的发布,调试,临时构建配置之间的所有差异。

As adig said, get crashlog from device, then symbolicate it. You will see call stack and the line, that caused crash. All differences between release, debug, ad hoc, etc. build configuration you can setup in your project.

这篇关于ipa文件导致游戏崩溃,但从Xcode运行正常吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆