Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple Store submit fails with Error ITMS-90046, but Associated Domains is not among entitlements

When I first built my app & Watchkit app, I had the "Associated Domains" capability enabled. I've disabled it in the "Capabilities" panel of both the watchkit extension and the companion app, and confirmed that the key is gone from each info.plist.

I have gone to Apples' "Certificates, Identifiers and Profiles" page, selected the App ID for each the Watchkit App, The Extension, and the App, unticked "Associated Domains", regenerated the provisioning profiles for each, downloaded and installed them.

I've done a Ctrl-Shift-Command-K complete clean, reboot, and rebuild. On sumbission to the appstore I get the error message below.

I have done a project search within xcode and cannot find a com.apple.developer.associated-domains key. I've searched the build directory, nada. I don't believe this key actually exists in my code, and yet iTunesConnect seems to think its there and set to '*'.

Screen shot of error message itms-90046 from Xcode Organizer

like image 873
brianfit Avatar asked Apr 26 '15 12:04

brianfit


2 Answers

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.

Screenshot of Entitlements.plist

like image 59
brianfit Avatar answered Oct 26 '22 11:10

brianfit


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.

enter image description here

enter image description here

like image 39
Ciprian Rarau Avatar answered Oct 26 '22 12:10

Ciprian Rarau