简体   繁体   中英

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:

<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:

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. Be sure to have selected "All" in the right top-right corner and verify that there is only arm64 in the valid architectures.

It should look like this: 在此输入图像描述

your plist must be look like that:

在此输入图像描述

Set Build Active Architecture Only set to Yes . And you validate build product look like that:

在此输入图像描述

You can't upload apps to the App Store with that requirement. The only requirement you can have is lowest iOS target. So if you specify iOS9 (latest) then the iPhone 4s is still able to download your app. iPhone 4s runs the 32-bit architecture.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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