Xcode 4.2 + armv6 + release = 错误? [英] Xcode 4.2 + armv6 + release = bugs?
问题描述
我不太确定我的问题出在哪里,但情况如下.我有一个通用应用程序设置为 3.2 和 Base SDK iOS 5.0 的部署目标.该项目是在 Xcode 4.2 中创建的.
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.
我已将架构设置为包含 armv6 和 armv7 以用于调试"和发布"
I have set my Architectures to include both armv6 and armv7 for "Debug" and "Release"
仅构建活动架构"设置为否"
"Build Active Architecture Only" is set to "No"
在开发我的应用程序时,我遇到了一个奇怪的错误,我的 x 和 y 值在旧设备上无法正确输出(y 总是等于 x).
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).
一旦我从Info.plist"中删除了必需的设备功能",问题就消失了.
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?
推荐答案
@sch 正确地指出了解决方案.具体步骤如下:
The solution was rightly pointed out by @sch. Here are the exact steps:
转到构建设置"
Go to "Build Settings"
向下滚动到Apple LLVM 编译器 3.0 - 语言"
Scroll down to "Apple LLVM compiler 3.0 - Language"
找到Other C Flags",选择Release"行
Find "Other C Flags", select "Release" row
双击右起第二列的单元格
Double-click on the cell in the second column from the right
点击+"并输入-mno-thumb"
Click on "+" and write "-mno-thumb"
这篇关于Xcode 4.2 + armv6 + release = 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!