Xcode 4.2 + ARMv6 +发布=错误?
我不太确定我的问题出在哪里,但情况如下。我有一个通用应用程序,部署目标设置为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅上一个问题的答案。在评论中,有人提出了解决方案。
See this answer to a previous question. In the comments, someone suggests a solution.
@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"