Xcode 4.2 + armv6 + release = bugs?

久未见 提交于 2019-12-08 12:06:25

问题


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?


回答1:


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.




回答2:


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"



来源:https://stackoverflow.com/questions/9304716/xcode-4-2-armv6-release-bugs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!