Xcode 4.2 + ARMv6 +发布=错误?

发布于 2025-01-05 16:23:23 字数 321 浏览 3 评论 0原文

我不太确定我的问题出在哪里,但情况如下。我有一个通用应用程序,部署目标设置为 3.2 和 Base SDK iOS 5.0。该项目是在 Xcode 4.2 中创建的。

我已将我的架构设置为包括“调试”和“发布”的armv6和armv7

“仅构建活动架构”设置为“否”

在开发我的应用程序时,我遇到了一个奇怪的错误,我的x和y值不会输出在旧设备上正确(y 始终等于 x)。

当我从“Info.plist”中删除“必需的设备功能”后,问题就消失了。

然而,当我实际存档我的应​​用程序以进行分发时,问题似乎仍然存在!这该如何解释呢?我还可以检查什么?

I'm not really sure where my problem is but the scenario is as follows. I have a universal app set to a deployment target of 3.2 and Base SDK iOS 5.0. The project was created in Xcode 4.2.

I have set my Architectures to include both armv6 and armv7 for "Debug" and "Release"

"Build Active Architecture Only" is set to "No"

While developing my app, I encountered a strange bug where my x and y values would not output correctly on older devices (y would always equal to x).

Once I removed "Required device capabilities" from my "Info.plist" the issue had gone away.

However, it appears that when I actually Archive my app for distribution, the issue is still there! How can this be explained? What else can I check?

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

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

发布评论

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

评论(2

GRAY°灰色天空 2025-01-12 16:23:23

请参阅上一个问题的答案。在评论中,有人提出了解决方案。

在armv6上禁用Thumb构建可以防止此类错误。

See this answer to a previous question. In the comments, someone suggests a solution.

Disabling build for Thumb on armv6 prevents these kinds of errors.

深居我梦 2025-01-12 16:23:23

@sch 正确地指出了解决方案。以下是具体步骤:

  • 转到“构建设置”

  • 向下滚动到“Apple LLVM 编译器 3.0 - 语言”

  • 查找“其他 C 标志”,选择“释放”行

  • 双击第二个单元格右侧列

  • 单击“+”并写入“-mno-thumb”

The solution was rightly pointed out by @sch. Here are the exact steps:

  • Go to "Build Settings"

  • Scroll down to "Apple LLVM compiler 3.0 - Language"

  • Find "Other C Flags", select "Release" row

  • Double-click on the cell in the second column from the right

  • Click on "+" and write "-mno-thumb"

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