Even in Xcode 9 GM, Xcode is incorrectly creating armv7 and armv7s slices for Sticker Pack app extension when submitting to App Store. I have an iOS application with multiple components.
- iOS App
- iOS Today View Extension (widget)
- iOS Messages Sticker Pack
- watchOS App
- watchOS App Extension
I have verified over and over again that each target has the correct Build Settings. The defaults actually. I've compared them to brand new projects I created for comparison purposes. Also, each target has a deployment target of iOS 11/watchOS 4 respectively. Anyway, every time when I submit to the App Store, I get an iTunes Connect error:
iTunes Store Operation Failed
ERROR ITMS-90503: "Invalid Bundle. Apps that have 'arm64' in the list of UIRequiredDeviceCapabilities in Info.plist must only contain the arm64 slice."
When I look at the app and the components in the archive, it shows the following architectures for the following:
- iOS App - arm64
- iOS Today View Extension (widget) - arm64
- iOS Messages Sticker Pack - armv7, armv7s, arm64
- watchOS App - armv7k
- watchOS App Extension - armv7k
So the culprit here is the Sticker Pack creating more slices than I need and that iTunes Connect will accept. No matter what I do in the Build Settings in for Architectures and Valid Architectures, it still creates all three slices. I've even set 'Required Device Capabilities' in each iOS app extension's Info.plist file and set them to arm64. No luck.
I did a little test as well. I removed my sticker pack extension and uploaded the app without it to iTunes Connect. Of course it worked! But as soon as I add a sticker pack to my project, it breaks again.
I am starting to be convinced that this is a bug with Xcode - creating other slices in my archive/.ipa that do not need to be there and causing iTunes Connect to reject my app upload.
What is weird is that the iOS app and the iOS Today View Extension have the same settings under General and Build Settings as the Sticker Pack Extension and even then, the Sticker Pack has more arm slices than it should have. The iOS app and Today View Extension are building fine, why isn't the Sticker Pack Extension?!
It seems that others have encountered this issue but no solution works for me (and there weren't very many). Anyone here encounter this issue and found a solution for it?
Any help would be greatly appreciated!