应用程序可以通过直接安装在设备上运行,但不能通过 ipa 安装

发布于 2024-12-27 15:45:25 字数 441 浏览 3 评论 0原文

我一直在网上冲浪,但没有找到针对这种情况的答案(尽管我觉得很惊讶,因为我不敢相信我是第一个遇到这种情况的人)。也许我不知道找到它的正确关键字...

我的问题是我使用 XCode 4.2 构建了一个 iOS 应用程序,并测试它直接在使用 iOS 4.2.1 的 iPhone 3G 中运行,一切都按预期运行。 但是,如果我构建一个 .ipa 并将其安装在同一设备中(我之前已经卸载了以前安装的应用程序),它会完美安装,并且几乎所有应用程序都可以正常工作......但对于一个无法正常工作的地方适当地。

我没有详细说明到底发生了什么,因为这是以前在其他设备(即 ipad 1、iphone 4...)的其他应用程序中发生过的事情(一旦我发现直接编译并执行到设备正在将未初始化的矩形添加到某些内容中,而在 .ipa 中它崩溃了(我认为它是 SIG_ABRT 但不确切)

在任何地方记录了这种情况?

是否 提前!

I've been surfing the net and have found no answer to this situation I have (though I find it surprising because I can't believe I'm the first one to come over this). Maybe I don't know the correct keywords for finding it...

My problem is I build an iOS app with XCode 4.2 and test it running directly in an iPhone 3G with iOS 4.2.1 and everything runs as it is supposed to.
However, if I build an .ipa and install it in that same device (where I have previously uninstalled the former installation of the app), it install perfectly and almost all the app works fine... but for one place that is not working properly.

I don't enter in details of what is exactly happening because it is something that has happened before in other apps with other devices (i.e. ipad 1, iphone 4...) (once I found out that compilation and execution directly to a Device was letting an uninitialized rect being added to something, while in .ipa it crashed (I think it was a SIG_ABRT but don't know exactly).

Is this situation documented anywhere? What cases compile in one way and others don't?

Thanks in advance!

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

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

发布评论

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

评论(2

能怎样 2025-01-03 15:45:25

尝试在“构建设置”的“Apple LLVM 编译器 4.1 - 代码生成”部分中为优化级别选择“无”。

Try to select "None" for Optimization Level in the section "Apple LLVM compiler 4.1 - Code generation" of Build Settings.

就此别过 2025-01-03 15:45:25

Philip J. Fry 的回答:“尝试在构建设置的“Apple LLVM 编译器 4.1 - 代码生成”部分中为优化级别选择“无”。”

今天,“Apple LLVM 编译器 8.1 - 代码生成”仍然是正确的答案,

请小心更改目标和项目......

Philip J. Fry's answer: "Try to select "None" for Optimization Level in the section "Apple LLVM compiler 4.1 - Code generation" of Build Settings."

It still is the proper answer today with "Apple LLVM compiler 8.1 - Code generation"

be careful changing it both target and project...

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