如何解决“应用程序可执行文件缺少所需的架构"?MonoTouch 出错? [英] How to resolve "application executable is missing a required architecture" error with MonoTouch?

查看:29
本文介绍了如何解决“应用程序可执行文件缺少所需的架构"?MonoTouch 出错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前没有使用 LLVM 编译器.我发现,如果我在最低操作系统版本"设置为 4.0 的情况下进行编译,则应用程序加载程序会返回一个错误消息:iPhone/iPod Touch:应用程序可执行文件缺少所需的架构.必须至少存在以下架构之一:armv7

We're not currently using the LLVM compiler at the moment. What I'm finding is that if I compile with "Minimum OS Version" set to 4.0, the Application Loader returns an error saying: iPhone/IPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv7

我注意到这也发生在 MonoTouch 的最后一个版本之前……但当时,LLVM 编译器正在为我的项目工作,而 LLVM 没有发生错误.几乎就好像 LLVM 编译器的引入导致旧"编译方法以某种方式停止使用架构标记可执行文件.

I noticed that this happened before the last release of MonoTouch as well...but at that time, the LLVM compiler was working for my project, and the error didn't occur with LLVM. It is almost as if the introduction of the LLVM compiler caused the "old" compilation method to stop marking executables with an architecture somehow.

有没有人看到过这个或解决过这个问题?我尝试将armv7"添加到 plist 文件中的 UIRequiredDeviceCapabilities(基于其他阅读),但这并不能解决问题.

Has anyone seen this or worked around it? I tried adding "armv7" to the UIRequiredDeviceCapabilities in plist file (based on other reading) but that doesn't resolve the issue.

如果我将最低操作系统版本"设置为 3.0,则 Application Loader 一切正常,但产生的 .IPA 非常大.

All is well with Application Loader if I set "Minimum OS Version" to 3.0, but the resulting .IPA is huge.

推荐答案

我之前使用的是 1.3 解决方法,但在最近的操作系统升级后,应用程序加载器 1.3 拒绝工作.

I was previously using the 1.3 workaround, but after a recent OS upgrade, application loader 1.3 refused to work.

我从 iTunes Connect 下载了当前版本的应用程序加载器,然后又跑回了 arm7 required 错误.

I downloaded the current version of application loader from iTunes Connect and ran right back into the arm7 required error.

经过一番摸索,我发现您现在必须使用 LVVM 编译器(在 iPhone 构建选项、高级选项卡中),然后选择 ARM6 + ARM7ARM7 从下拉列表中.

After poking around a bit, I figured out that you now have to use the LVVM compiler (in iPhone Build Options, Advanced tab) and then select either ARM6 + ARM7 or ARM7 from the dropdown list.

执行此操作后,您应该能够使用新的应用程序加载器.

After doing this, you should be able to use the new application loader.

这篇关于如何解决“应用程序可执行文件缺少所需的架构"?MonoTouch 出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆