问题
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:
Under 'Certificates, Identifiers & Profiles' in the Developer Member Center, choose your App ID under 'Identifiers', 'App IDs' in the left hand column.
Choose 'Edit' and then 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.
回答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).
- Turn off Associated Domains in all three App IDs.
- Regenerate any provisioning profiles
- 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