验证应用程序,应用程序缺少架构armv7

Thi*_*sch 17 architecture objective-c entitlements armv7 code-signing-entitlements

当我更新我的第一个iOS应用程序时,我有2个问题验证它们,

*iPhone/iPod Touch:application executable is missing a required architecture. 
At least one of the following architecture(s) must be present: armv7

*Unable to extract entitlements from application: (null)
Run Code Online (Sandbox Code Playgroud)

Info.plist和构建设置都是默认设置,我唯一改变的是代码签名Identity调试和发布到我的分发配置文件,应用程序ID和Bundle ID相同.

Tra*_*eck 76

当我连接iphone 5并构建我的存档时,这发生在我身上.当我断开我的iPhone并建立我的档案时,它很顺利.

  • 它不是魔术,它是您项目中的"仅构建活动架构"设置.对于您的发行版配置,您需要将其设置为"NO",请参阅旧的但很好的:http://useyourloaf.com/blog/2010/04/21/xcode-build-active-architecture-only.html (8认同)
  • 我不敢相信 - 一旦我解开设备,这个错误就消失了...... (7认同)

Ada*_*ite 23

确保"Build Active Architectures"在项目和目标设置中都设置为No以及此处的答案"警告:iPhone应用程序应包含armv6体系结构",即使使用build config set也是如此


Sta*_*kie 0

它说缺少所需的架构试试这个

  1. 转到目标“您的项目”
  2. 转到构建设置
  3. 查看Architectures中是否有armv7
  4. 如果没有,则将Architectures设置为armv7
  5. 清理并构建。

如果已经有了armv7,那么一定有问题。

希望能帮助到你!