xcode 警告:架构“armv7 armv7s”不包含所有必需的架构“arm64”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19399472/
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-09-15 04:06:46  来源:igfitidea点击:

Warning: architectures 'armv7 armv7s' didn't contain all required architectures 'arm64'

iosxcode

提问by ohho

There is a warning in a Xcode project:

Xcode 项目中有一个警告:

crypto was rejected as an implicit dependency for 'libcrypto.a' because its architectures 'armv7 armv7s' didn't contain all required architectures 'arm64'sasl2 was rejected as an implicit dependency for 'libsasl2.a' because its architectures 'armv7 armv7s' didn't contain all required architectures 'arm64'ssl was rejected as an implicit dependency for 'libssl.a' because its architectures 'armv7 armv7s' didn't contain all required architectures 'arm64'

crypto 被拒绝作为'libcrypto.a' 的隐式依赖项,因为它的架构'armv7 armv7s' 不包含所有必需的架构'arm64'sasl2 被拒绝作为'libsasl2.a' 的隐式依赖项,因为它的架构'armv7 armv7s'不包含所有必需的架构 'arm64'ssl 被拒绝作为 'libssl.a' 的隐式依赖项,因为它的架构 'armv7 armv7s' 不包含所有必需的架构 'arm64'

What should I fix this warning?

我应该怎么解决这个警告?

回答by rckoenes

Remove the ARM64 architecture from your project Build setting. Because the libraries you are using do not support the new ARM64 architecture.

从您的项目构建设置中删除 ARM64 架构。因为您使用的库不支持新的 ARM64 架构。

回答by Carlos Fonseca

Removing ARM64 is no longer an option…

删除 ARM64 不再是一种选择……

Beginning on February 1, 2015 new iOS apps submitted to the App Store must include 64-bit support and be built with the iOS 8 SDK. Beginning June 1, 2015 app updates will also need to follow the same requirements. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.

从 2015 年 2 月 1 日开始,提交到 App Store 的新 iOS 应用程序必须包含 64 位支持并使用 iOS 8 SDK 构建。从 2015 年 6 月 1 日开始,应用更新也需要遵循相同的要求。要在您的项目中启用 64 位,我们建议使用“标准架构”的默认 Xcode 构建设置来构建具有 32 位和 64 位代码的单个二进制文件。

回答by markussvensson

This settings worked for me. Note Build Active Architecture Only settings for debug and release

这个设置对我有用。注意 Build Active Architecture Only 设置用于调试和发布

回答by Feras

Removing the $(ARCHS_STANDARD) from the Architectures and replace it with armv7,armv7s solve the problem

从 Architectures 中删除 $(ARCHS_STANDARD) 并将其替换为 armv7,armv7s 解决问题