com.apple.developer.associated-domains issue when validating iOS app

吃可爱长大的小学妹 提交于 2020-06-09 11:06:34

问题


When I was validating my project with Organizer in Xcode, I got the following error

Invalid code signing entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS.

Specifically, value *for key com.apple.developer.associated-domains in Payload/MyApp.app/MyApp is not supported.

I cannot find any relevant answer from google. Hope someone can help me?


回答1:


I had a similar problem with Xcode 5.1.1, and couldn't solve it using any of the solutions I found online. However, this worked for me:

  1. Under 'Certificates, Identifiers & Profiles' in the Developer Member Center, choose your App ID under 'Identifiers', 'App IDs' in the left hand column.

  2. Choose 'Edit' and then disable 'Associated Domains.'

App Identifiers

Disable 'Associated Domains.'




回答2:


Finally, I find that associated domains is only available in Xcode6 under Capabilities tab. It seems that the validator is not happy if I leave this section empty. After adding an item of my domain to that section, I managed to pass the validation process.. See this link for more info about associated domains.

https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/AddingCapabilities/AddingCapabilities.html

I am using Xcode 6 GM.

Thanks for the suggestion of @Sabo. I added a screenshot of my associated-domains setting. You probably need just click on the plus button and replace "example.com" with yours.

enter image description here




回答3:


I had the same issue.

Here is the resolution for anyone else having this problem.

  • Log into iOS Dev Center and go to Certificates, Identifiers & Profiles.

  • Go to Identifiers/App IDs.

  • Choose the appropriate ID for your app.

  • Click on the Edit button at the bottom.

  • Uncheck Associated Domains and click Done.

You will have to regenerate any provisioning files associated with this ID.

I had never selected this for the app last time I submitted my app to the app store.

I am guessing that the update to iOS/Dev Center may have added it.

But I am not exactly sure. All I know is that I am now able to validate my package and submit to the app store.




回答4:


Just turn off Associated Domains in your App ID (at developer.apple.com), and create a new distribution provisioning profile (if you not create profiles manually, then delete the previous at least).

It turned out to me that the value stuck into the profile even if you turn off the service. If you open the entitlements details just before you submit your app, you can see that com.apple.developer.associated-domains entitlement (until it is removed).

Having this, you don't need the fake entitlement entry.




回答5:


Try appending "applinks:" before your associated domain name under Associated Domains in Project Entitlement file (obviously, after enabling Associated Domains from Capabilities).




回答6:


If you're having this problem with Apple Watch, it might be that your App IDs have gotten this property automatically in the Apple Developer Portal thanks Xcode. You probably have three App IDs (one for the main app, one for the watchkitapp and one for watchkitextension).

  1. Turn off Associated Domains in all three App IDs.
  2. Regenerate any provisioning profiles
  3. Refresh in Xcode

Ignore any instructions to go and delete your provisioning profiles manually. They refresh properly with no issues.




回答7:


For me it was "Provisioning profile "profile_name" doesn't support the Associated Domains capability."

and I had to Enable Domain capability in iTunes Account's Profile this

Just update App ID configuration and profile and install in Xcode by double click on it.

and it worked for me




回答8:


I found the other two easily solution with project setting.
Solution 1.
Targets > select Target > Build Settings > Signing > clear Code Signing Entitlements.

Solution 2.
project > *.entitlements > Entitlements File > remove Associated Domains.




回答9:


Probably you cannot use the keyword "apple"



来源:https://stackoverflow.com/questions/25784728/com-apple-developer-associated-domains-issue-when-validating-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!