应用程序在设备上的测试版中崩溃,但在调试中未崩溃

发布于 2024-08-17 06:38:09 字数 323 浏览 7 评论 0原文

我创建了一个 Beta 临时交付配置文件,当我在 Beta 模式下的设备上按“构建并运行”时,我的应用程序在按下按钮后崩溃。

但是,当我在调试模式下(在设备上)使用该应用程序时,它工作正常。它在模拟器和 Beta 模式的设备上也能正常工作(当它未连接到 XCode 时)

有什么想法吗?这并没有太困扰我,因为我可以在调试模式下进行调试......但我想知道当涉及到提交过程时,这是否会成为问题?

谢谢!

编辑:这是否是因为我有一个权利文件(dist.plist),其中未选中选项“get-task-allow”?我尝试选中此框,但收到错误“可执行文件使用无效参数签名”

I've created a Beta ad hoc delivery profile, and when I press 'build and run' on the device in beta mode, my app crashes after I press a button.

However, when I use the app in debug mode (on the device) it works fine. It also works fine in the simulator and on the device in beta mode (when it's not connected to XCode)

Any ideas what's up here? It doesn't bother me too much since I can debug in debug mode...but I'm wondering when it comes to the submission process, if this will be a problem?

Thanks!

EDIT: Would this happen to be because I've got an entitlements file (dist.plist) with the option 'get-task-allow' unchecked? I tried checking this box but got an error "The executable was signed with invalid arguments"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

神妖 2024-08-24 06:38:09

有很多领域可能是罪魁祸首。您可能有 #if 或 #ifdef DEBUG,或者您可能(更有可能)有一些未包含在 Beta 目标中的源代码或 xib。

无论是在通过 Xcode 运行期间还是在将设备重新插入 Mac 并使用管理器窗口查看日志文件后,您都应该查看日志,以了解崩溃的更多详细信息。如果与单击按钮相关,请查看 xib 中设置的按钮操作与代码中的选择器之间的路径。撒一些 NSLogs 在那里可以帮助你。

There are many areas that can be the culprit. You may have an #if or #ifdef DEBUG, or you could have (more likely) some source or xib that is not included in the Beta Target.

You should be looking in the log, whether during its run via Xcode or after when you plug the device back into your Mac and look at the log file using the Organizer window, for more details of the crash. If it is related to clicking on a button, look at the path between the the button's actions set in the xib and the selector in your code. Sprinkle some NSLogs in there to help you out.

影子是时光的心 2024-08-24 06:38:09

我在与其他系统交互的应用程序中经历过这种情况,其中时序至关重要,而调试模式会影响与其他系统交互的时序。特别是当屏幕抓取 IBM 大型机时,但任何时间关键的应用程序都可能会遇到这种情况。

I have experienced this with applications that interact with other systems where timing is critical and debug mode affects the timing of the interaction with the other systems. Specifically when screen scraping an IBM mainframe but any time critical application may experience this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文