Xcode 4.2 / iOS 5 - Atleast one of the following architectures must be present : armv6

蓝咒 提交于 2019-12-10 22:53:56

问题


I've just upgraded to iOS5 / Xcode 4.2 and I'm now trying to submit an application to the App Store. When I try to validate my Archive, I get an error saying:

iPhone / iPod touch : application executable is missing a required architecture. Atleast one of the following architectures must be present: armv6

I've checked a few similar questions and the most of the accepted answers just said set the Build Active Architecture Only to NO. I've done this already and I still have the same issue. Here are my keys:

Architectures:

Distribution: Standard (armv7) - $(ARCHS_STANDARD_32_BIT)

Base SDK : iOS 5.0

Build Active Architecture Only: NO

Valid Architectures: armv6 armv7

Any help on how to fix this is much appreciated!

Thanks,
Teja

EDIT: Also added key armv6 manually to the Architectures section in the Build Settings. No change.


回答1:


Setting the Target to iOS 4.3 will get rid of the App Store error, as iOS 4.3 requires armv7 and is not supported on the older armv6 devices.




回答2:


I had to add the armv6 key manually to the Architectures section of the Target that I was archiving.. not the whole project. This worked to get my submission to the AppStore done, but I'll hold out for a better answer.




回答3:


To continue to support the older architectures (e.g. iPhone 3G), just select your app target and select "Build Settings". At the top, change the Architectures listed from "Standard (armv7)" to "Other". In the pop-up box, select the existing option and click the minus button, then click the plus button and add "armv7", then again click plus and add "armv6". armv7 will support the newer chips, while armv6 will add back in support for the iPhone 3G... providing you set your iOS Deployment Target to iOS 4.2 or earlier... your setting at 3.x should be just fine—that merely limits you to not using newer features of iOS obviously.

You may also need to add "-mno-thumb" under "Other C Flags" in the Build Settings, though if my memory serves me correctly that may only have been if you are wanting to use Automatic Reference Counting on the old architecture—and even then only because this is a work-around for a known bug.



来源:https://stackoverflow.com/questions/7798197/xcode-4-2-ios-5-atleast-one-of-the-following-architectures-must-be-present

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