Xcode 缺少 64 位支持并启用标准架构

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

Xcode Missing 64-bit support with standard architectures enabled

iosiphonexcode64-bitapp-store-connect

提问by gb_kf

I have looked through several similar questions and am still unable to get it to work. When I archive and upload my app to the app store, I get the error message :

我已经浏览了几个类似的问题,但仍然无法让它发挥作用。当我存档并将我的应用程序上传到应用程序商店时,我收到错误消息:

iTunes Store operation failed. Missing 64-bit support. Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. 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-...

iTunes Store 操作失败。缺少 64 位支持。从 2015 年 2 月 1 日起,上传到 App Store 的新 iOS 应用程序必须包含 64 位支持,并使用 iOS 8 SDK 构建,包含在 Xcode 6 或更高版本中。要在您的项目中启用 64 位,我们建议使用“标准架构”的默认 Xcode 构建设置来构建具有 32 位和 64 位的单个二进制文件...

Error message

错误信息

As suggested in other questions/answers, I have brought my app up to recommended settings, set Standard Architectures and Valid Architectures to include arm64 (See below) Standard Architectures

正如其他问题/答案中所建议的,我已将我的应用程序设置为推荐设置,将标准架构和有效架构设置为包括 arm64(见下文) 标准架构

This did not work, I received the same error message when I tried to upload the app. I don't have any iOS devices connected to my machine while doing this. I also read that some 3rd party libraries may cause this, but I believe the only 3rd party libraries I use are Google Analytics and Google Mobile Ads, both of which I updated recently (I even tried removing Google Analytics but that did not work either). See the linked libraries section: Linked libraries

这不起作用,当我尝试上传应用程序时收到相同的错误消息。执行此操作时,我没有任何 iOS 设备连接到我的机器。我还读到一些 3rd 方库可能会导致这种情况,但我相信我使用的唯一 3rd 方库是 Google Analytics 和 Google Mobile Ads,我最近更新了这两个库(我什至尝试删除 Google Analytics,但也没有用) . 请参阅链接库部分: 链接库

After doing all of this, I am at a loss as to why the error message still comes up. I also tried deleting the Derived Data. Is there some other setting in one of the classes that could block the app from supporting 64-bit? How do I get this app to support 64-bit?

完成所有这些之后,我不知道为什么仍然出现错误消息。我也尝试删除派生数据。其中一个类中是否有其他设置会阻止应用程序支持 64 位?如何让这个应用程序支持 64 位?

Questions/answers I tried previously:

我之前尝试过的问题/答案:

iOS app: Missing 64-bit support

iOS 应用:缺少 64 位支持

iOS: Standard architectures enabled but iTunes not recognising 64 bit support

iOS:启用标准架构但 iTunes 无法识别 64 位支持

iOS app submission : missing 64-bit support

iOS 应用程序提交:缺少 64 位支持

Why the Missing 64-bit support happened when upload to the iTunes connect?

为什么在上传到 iTunes 连接时会发生缺少 64 位支持?

回答by Dharmesh Siddhpura

To enable 64-bit support:

要启用 64 位支持:

You need to add "arm64" under "Valid Architectures" and set "Architecture" as "Standard Architecture" as shown in attached screenshot.

您需要在“有效架构”下添加“arm64”并将“架构”设置为“标准架构”,如附加屏幕截图所示。

Also make sure to turn "Build Active Architectures Only" to NO.

还要确保将“仅构建活动架构”设置为否。

To enable 64-bit support

启用 64 位支持

回答by Sreeraj VR

You can manually add 64- bit (arm64) support like this:enter image description here

您可以像这样手动添加 64 位 (arm64) 支持:在此处输入图片说明