Apple Store submit fails with Error ITMS-90046, but Associated Domains is not among entitlements
To fix this issue:
- log into Apple Deveveloper Center
- Go to Certificates, Identifiers & Profiles.
- Go to Identifiers/App IDs.
- Select your App ID and Edit
- Uncheck Associated Domains
- Save
You will have to regenerate any provisioning files associated with the App ID. For some reason the "Associated Domains" got checked for my app. Deselecting it made the AppStore submission work.
I think this is a bug.
I managed a workaround by simply inserting a new Array item in the Entitlements.plist of both the companion app and the Watchkit extension: "com.developer.apple.associated-domains" and a valid domain for the webcredentials: string. While this will have no practical effect as neither my provisioning files nor the Capabilities tab of the app or extension are enabled for associated domains, it stopped whatever code scanner at itunesconnect was tripping over an invalid value of "*" for the non-existent key.
If you want to use associated-domains, make sure each entry in Entitlements.plist > com.developer.apple.associated-domains
uses the following format:
<service>:<fully qualified domain>[:port number]
eg.
webcredentials:www.example.com
applinks:www.example.com
activitycontinuation:www.example.com
Keep in mind [:port number]
is optional, but <service>
and <fully qualified domain>
are required!