2

So, my problem is that I'm creating a framework to be used with iOS. It works great when in the simulator and when I'm debugging it on my iPad but as soon as I send it to anyone via Testflight (including my iPad) it crashes. The application will load the splash screen, then crash.

I tried symbolicating the report but I'm not getting anything out of it.

4

2 回答 2

1

所以,我的问题的解决方案是我正在链接框架但没有将它复制到设备,所以当我用连接到它的 iPad 调试它时,它会找到对框架的引用,但是一旦它被部署,应用程序在尝试查找框架时崩溃。

答案是:

  1. 转到项目的构建阶段。
  2. 添加构建阶段 > 添加副本文件。
  3. 在目标字段中选择框架。
  4. 复制框架。

您的应用程序现在应该已将框架复制并安装在需要的任何位置。

于 2012-04-11T02:50:38.333 回答
1

有一次发生在我身上... xcode 编译应用程序以在模拟器上调试,但在 iOS 设备上发布。然后,调试版本没有做很多增强。

转到“产品”->“管理方案”。在那里,如果我是你,我会将所有内容设置为“构建配置”:发布。

这样,您可能会使模拟器崩溃......并且您可能更容易弄清楚发生了什么。

在我的情况下,我使用了一个块但没有复制它......然后,在发布版本中,编译器清除了内存,而在调试版本中它没有。

希望能帮助到你

于 2012-04-10T23:46:35.853 回答