ios 应用程序可执行文件缺少所需的架构 armv6

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7053466/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 21:05:11  来源:igfitidea点击:

application executable is missing a required architecture armv6

ios

提问by azamsharp

I am using xCode 4.2 and trying to deploy my application. I am failing the validation with the following error message:

我正在使用 xCode 4.2 并尝试部署我的应用程序。我未通过验证并显示以下错误消息:

application executable is missing a required architecture armv6

The value for my Architectures is set to Standard (armv7). This is the ONLY option in the dropdownlist. Base SDK: iOS 5.0 (This is the only option) Deployment SDK: 3.2 Build Active Architecture Only: NO Valid Architectures: armv6 armv7 armv7f armv7k

我的体系结构的值设置为标准 (armv7)。这是下拉列表中的唯一选项。基础 SDK:iOS 5.0(这是唯一的选择) 部署 SDK:3.2 仅构建活动架构:否 有效架构:armv6 armv7 armv7f armv7k

Does anyone please know the solution to this problem?

请问有人知道这个问题的解决方案吗?

回答by J3RM

In the Xcode 4.2 GM this is still a problem but you can resolve it by doing the following.

在 Xcode 4.2 GM 中,这仍然是一个问题,但您可以通过执行以下操作来解决它。

  1. Switch to the files/folders view in xcode project

  2. Select your Project ( the blue icon)

  3. Select your Application under Targets in the middle of the screen.

  4. Go To build settings

  5. Find Architectures > Distribution

  6. Expand this section so you can see both Debug and Release

  7. Change "Standard (armv7) - $(ARCH_STANDARD_32_BIT)" to "Other..."

  8. Replace, "Standard (armv7) - $(ARCH_STANDARD_32_BIT)" with "armv6", then add a new item "armv7"

  1. 切换到 xcode 项目中的文件/文件夹视图

  2. 选择您的项目(蓝色图标)

  3. 在屏幕中间的目标下选择您的应用程序。

  4. 转到构建设置

  5. 查找架构 > 分布

  6. 展开此部分,以便您可以看到 Debug 和 Release

  7. 将“标准 (armv7) - $(ARCH_STANDARD_32_BIT)”更改为“其他...”

  8. 将“Standard (armv7) - $(ARCH_STANDARD_32_BIT)”替换为“armv6”,然后添加一个新项目“armv7”

Remember you may need to do this for all included projects aka frameworks such as TAPKU

请记住,您可能需要为所有包含的项目(即 TAPKU 等框架)执行此操作

enter image description here

在此处输入图片说明

回答by SK9

For Xcode 4.5, set the deployment target to at least iOS 4.3 and that will resolve it. armv6 and earlier versions of iOS are almost extinct.

对于 Xcode 4.5,将部署目标设置为至少 iOS 4.3,这将解决它。armv6 及更早版本的 iOS 几乎绝迹。

回答by bdurao

Easy way to do it:

简单的方法:

1) Left-click project icon (blue icon, under "Run" button).

1) 左键单击项目图标(蓝色图标,在“运行”按钮下)。

2) Next to the project icon (to the right of it), left-click on project nameunder "PROJECT"(White background).

2) 在项目图标旁边(在它的右侧),左键单击“PROJECT”(白色背景)下的项目名称

3) Select tab "Build Settings"and look for submenu "Architectures"(First one). Left-click on "Standard (armv7) $(ARCH_STANDARD_32_BIT)"and select "Other..."

3)选择选项卡“构建设置”并查找子菜单“架构”(第一个)。左键单击“标准 (armv7) $(ARCH_STANDARD_32_BIT)”并选择“其他...”

4) Click on the "-"icon to remove original value ("$(ARCH_STANDARD_32_BIT)"). Click the "+"icon and write "armv6"(without double-quotes). Click the "+"icon again and add "armv7"(also without double-quotes). Click "Done".

4) 单击“-”图标删除原始值(“$(ARCH_STANDARD_32_BIT)”)。单击“+”图标并写入“armv6”(不带双引号)。再次单击“+”图标并添加“armv7”(也没有双引号)。单击“完成”

5) Make sure that "Build Active Architecture Only"is set to "No"(it should be)

5)确保“仅构建活动架构”设置为“否”(应该是)

6) Next to the project icon (to the right of it), left-click on project nameunder "TARGETS"and repeat steps 3, 4 and 5.

6) 在项目图标旁边(在它的右侧),左键单击“TARGETS”下的项目名称,然后重复步骤 3、4 和 5。

7) Press cmd + Ion your keyboard (or Product -> Profileon Xcode menu) and check to see if everything is ok.

7) 按键盘上的cmd + I(或Xcode 菜单上的Product -> Profile)并检查是否一切正常。

回答by Rajaraman

My environment was Xcode 4.5.1. Changing two things solved this issue for me.

我的环境是 Xcode 4.5.1。改变两件事为我解决了这个问题。

  1. Setting the deployment target to at least iOS 4.3.
  2. Keeping only armv7 architecture in the Architectures list under build settings and removing all others (including armv6) explicitly.
  1. 将部署目标设置为至少 iOS 4.3。
  2. 在构建设置下的体系结构列表中仅保留 armv7 体系结构并明确删除所有其他体系结构(包括 armv6)。

回答by Piotr Byzia

I stumble upon this question when looking for a solution to the warning:

在寻找警告的解决方案时,我偶然发现了这个问题:

warning: iPad: application executable is missing a required architecture.
At least one of the following architecture(s) must be present: armv7 (-19033)
Unable to validate your application. - (null)

Other answers did not solve my problem, then I realized I changed a value of CFBundleExecutable. When I returned to the old value everything went smoothly again.

其他答案没有解决我的问题,然后我意识到我改变了CFBundleExecutable. 当我回到旧值时,一切又顺利了。

I'm not sure what is a direct cause of that warning but at least I can distribute Ad Hoc builds again.

我不确定该警告的直接原因是什么,但至少我可以再次分发 Ad Hoc 构建。

回答by user1712742

Adding armv6 was only partially the problem for me to resolve the same issue with Xcode 4.5. I also had to increase my deployment target from iOS 4.1 to iOS 5.0 to get it to work. Many hours of frustration for such a simply fix. Hope it helps.

添加 armv6 只是我解决 Xcode 4.5 相同问题的部分问题。我还必须将我的部署目标从 iOS 4.1 增加到 iOS 5.0 才能使其正常工作。对于这样一个简单的修复,许多小时的沮丧。希望能帮助到你。

回答by samwize

All of the answers didn't help for my case, using Xcode 4.2.1.

使用 Xcode 4.2.1,所有答案对我的情况都没有帮助。

What I did was changing Architecturesfrom armv7to armv6 armv7and it worked. Like this:

我所做的是Architecturesarmv7变为armv6 armv7并且它起作用了。像这样:

enter image description here

在此处输入图片说明

回答by Dario Caric

For me it helped when I set only armv6under Architectures

对我来说,当我只armv6在 Architectures 下设置时它会有所帮助