简体   繁体   English

如何仅为64位iOS设备提交存档?

[英]How to submit an archive only for 64-bit iOS devices?

I'm trying to archive a content blocker application. 我正在尝试存档内容拦截器应用程序。 Because the API is only available on 64 bits, I've added this in the info.plist of the app: 因为API仅在64位上可用,所以我在应用的info.plist中添加了这个:

<key>UIRequiredDeviceCapabilities</key>
<array>
    <string>arm64</string>
</array>

This value is only in the application target, not the content blocker target. 此值仅在应用程序目标中,而不在内容阻止程序目标中。 When sending my application to the App Store using Xcode Organizer it returns this message: 使用Xcode Organizer将我的应用程序发送到App Store时,它会返回以下消息:

ERROR ITMS-90503: "Invalid Bundle. Apps that have 'arm64' in the list of UIRequiredDeviceCapabilities in Info.plist must only contain the arm64 slice."...

I've checked online and this error looks new and undocumented, do you know what should I do to remove it? 我已经在网上查了一下这个错误看起来很新且没有文档,你知道我应该怎么做才能删除它吗?

As dsiddhpura suggested, the solution is to check the valid architectures in the build settings. 正如dsiddhpura建议的那样,解决方案是检查构建设置中的有效体系结构。 Be sure to have selected "All" in the right top-right corner and verify that there is only arm64 in the valid architectures. 确保在右上角选择“全部”并验证有效体系结构中是否只有arm64

It should look like this: 它应该如下所示: 在此输入图像描述

your plist must be look like that: 你的plist必须看起来像那样:

在此输入图像描述

Set Build Active Architecture Only set to Yes . Build Active Architecture Set设置为Yes And you validate build product look like that: 您验证构建产品看起来像这样:

在此输入图像描述

You can't upload apps to the App Store with that requirement. 您无法使用该要求将应用程序上传到App Store。 The only requirement you can have is lowest iOS target. 您可以拥有的唯一要求是iOS目标最低。 So if you specify iOS9 (latest) then the iPhone 4s is still able to download your app. 因此,如果您指定iOS9(最新),那么iPhone 4s仍然可以下载您的应用程序。 iPhone 4s runs the 32-bit architecture. iPhone 4s运行32位架构。

您可以删除“arm64”以外的体系结构,也可以将部署目标限制为8.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM