无法删除 arm64 架构 Xcode
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22480644/
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
cannot remove arm64 architecture Xcode
提问by Igor Prusyazhnyuk
My target build settings are shown above. If I open the drop-down menu, it contains only one item called "Standard architectures ..." ,but as you can see, it contains arm64 , so i think it's not standard anymore. I think I can delete arm64 from Valid Architecture, but is it safely?
我的目标构建设置如上所示。如果我打开下拉菜单,它只包含一项名为“标准架构...”的项目,但正如您所看到的,它包含 arm64 ,所以我认为它不再是标准的了。我想我可以从有效架构中删除 arm64,但它安全吗?
回答by Amar
Xcode 5.1 forces arm64
as standard architecture. However, the Xcode release notesalso mentions,
Xcode 5.1 强制arm64
作为标准架构。然而,Xcode 发行说明也提到,
Projects not able to support 64-bit need to specifically set the architectures build setting to not include 64-bit.
无法支持 64 位的项目需要专门将架构构建设置设置为不包括 64 位。
Apple does not explicitly say it is mandatory to have arm64
support. I have not found any official doc saying Apple has made it mandatory to support arm64
arch, not even the app review guideline. However, it is Apple you never can predict.
Apple 没有明确表示必须获得arm64
支持。我没有找到任何官方文档说 Apple 强制要求支持arm64
Arch,甚至没有应用指南。然而,你永远无法预测的是苹果。
Anyways, to change the architecture settings goto,
无论如何,要更改架构设置转到,
- Targets-->Build Settings-->Architectures-->Architectures
- Select "Other"
- Replace
$(ARCH_STANDARD)
with$(ARCHS_STANDARD_32_BIT)
- Now archive
- 目标-->构建设置-->架构-->架构
- 选择“其他”
- 替换
$(ARCH_STANDARD)
为$(ARCHS_STANDARD_32_BIT)
- 现在存档
Once before submitting the ipa
to appstore do a Validation
through Xcode.
在提交ipa
到 appstore之前Validation
通过 Xcode做一次。
Hope that helps!
希望有帮助!
回答by codercat
xCode 5.1 you can't do that. because the standard architecture was changed by apple
xCode 5.1 你不能这样做。因为标准架构被苹果改了
Arm64 is now included in the “Standard architectures” setting.
Arm64 现在包含在“标准架构”设置中。
Xcode 5.0 introduced support for building 64-bit iOS applications but it was not enabled by default. To enable the option of building 64-bit in Xcode 5.0, an architectures setting was provided: “Standard Architectures Including 64-Bit” (ARCHS_STANDARD_INCLUDING_64_BIT).
Xcode 5.0 引入了对构建 64 位 iOS 应用程序的支持,但默认情况下未启用。为了在 Xcode 5.0 中启用构建 64 位的选项,提供了一个架构设置:“包括 64 位的标准架构”(ARCHS_STANDARD_INCLUDING_64_BIT)。
With the introduction of Xcode 5.1, arm64 is included in the default "Standard architecture” build setting. This results in projects using the default setting automatically building for arm64 along with the standard 32-bit architectures.
随着 Xcode 5.1 的引入,arm64 包含在默认的“标准架构”构建设置中。这导致项目使用默认设置自动为 arm64 以及标准 32 位架构构建。
Edited:
编辑:
Projects not able to support 64-bit need to specifically set the architectures build setting to not include 64-bit.
无法支持 64 位的项目需要专门将架构构建设置设置为不包括 64 位。
Projects configured to use ”Standard Architectures Including 64-bit” will be converted to “Standard Architectures $(ARCHS_STANDARD).
配置为使用“包括 64 位在内的标准架构”的项目将转换为“标准架构 $(ARCHS_STANDARD)”。