调试和发布构建工作正常,但分发/临时崩溃
你好呀, 我的应用程序的一些用户向我报告说我的应用程序不再工作。它在启动后立即关闭。
几天来我一直在尝试识别崩溃问题,但没有成功使用构建调试和发布并在多个设备中测试它。今天早上,当我能够通过生成 AdHoc 版本并将其安装在我的 iPhone 上来重现该问题时,我感到很惊讶。
我已经尝试删除所有自定义配置并使用发布版本的副本重新创建它们,但它不起作用。
当我在模拟器中运行时,我收到以下错误,并且崩溃报告也指向同一位置...
检测到调用 iPhone 上不存在的系统库中的符号的尝试:fwrite$UNIX2003 称为来自函数 -[My7zipExtract extract7zFile:]
所以,我的问题是:构建调试/发布和分发(App Store/Ad Hoc)之间有什么区别。我已经仔细检查了所有内容,唯一的区别是证书。
任何帮助表示赞赏。
非常感谢
HI there,
Some users of my application have reported me that my application is no longer working. It closes just after launching it.
I have been trying to identify the crash for days with no luck using builds debug and release and testing it in several devices. This morning I was surprised when I was able to reproduce the problem by generating a AdHoc version and installing it on my iPhone.
I have already tried to remove all the custom configurations and recreate them using a copy of the release version but it did not work.
I got this error below when I was running in the simulator and the crash reports also points to the same place...
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:fwrite$UNIX2003 called from function -[My7zipExtract extract7zFile:]
So, my question is: What is the difference between build Debug/Release and Distribution (App Store/Ad Hoc). I have double checked everything and the only difference are the certificates.
Any help is appreciated.
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我现在也遇到同样的问题。我复制了 Debug Xcode 配置来创建 AdHoc 配置,添加权利并更改证书。
进行良好的旧 printf 调试;)我发现,当使用 AdHoc 构建时,C++ 构造函数在 iPhone 上的调用方式似乎有所不同/根本没有调用。
I'm having precisely the same problem right now. I copied my Debug Xcode configuration to create the AdHoc one, adding entitlements and changing the certificate.
Doing good old printf-debugging ;) i found that the c++ constructors seem to be called differently / not called at all on the iPhone when using the AdHoc build.