验证 iOS 应用程序时出现 com.apple.developer.related-domains 问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25784728/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
com.apple.developer.associated-domains issue when validating iOS app
提问by Jibeex
When I was validating my project with Organizer in Xcode, I got the following error
当我在 Xcode 中使用 Organizer 验证我的项目时,出现以下错误
Invalid code signing entitlements. Your application bundle's signaturecontains code signing entitlementsthat are not supported on iOS.
无效的代码签名权利。您的应用程序包的签名包含iOS 不支持的代码签名权利。
Specifically, value *
for key com.apple.developer.associated-domains
in Payload/MyApp.app/MyApp
is not supported.
具体而言,价值*
关键com.apple.developer.associated-domains
在Payload/MyApp.app/MyApp
不支持。
I cannot find any relevant answer from google. Hope someone can help me?
我无法从谷歌找到任何相关答案。希望可以有人帮帮我?
回答by markashworth
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:
我在 Xcode 5.1.1 上遇到了类似的问题,使用我在网上找到的任何解决方案都无法解决它。但是,这对我有用:
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.'
在开发者会员中心的“证书、标识符和配置文件”下,在左侧栏中的“标识符”、“应用 ID”下选择您的应用 ID。
选择“编辑”,然后禁用“关联域”。
回答by Jibeex
Finally, I find that associated domains is only available in Xcode6under Capabilitiestab. 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.
最后,我发现关联域仅在Xcode6 的Capabilities选项卡下可用。如果我将此部分留空,验证器似乎不高兴。将我的域的一个项目添加到该部分后,我设法通过了验证过程。有关关联域的更多信息,请参阅此链接。
I am using Xcode 6 GM.
我正在使用 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.
感谢@Sabo 的建议。我添加了关联域设置的屏幕截图。您可能只需要单击加号按钮并将“example.com”替换为您的。
回答by Vivo
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.
登录 iOS Dev Center 并转到 Certificates, Identifiers & Profiles。
转到标识符/应用程序 ID。
为您的应用选择合适的 ID。
单击底部的编辑按钮。
取消选中关联域并单击完成。
You will have to regenerate any provisioning files associated with this ID.
您必须重新生成与此 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.
我猜测 iOS/Dev Center 的更新可能已经添加了它。
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.
但我不确定。我所知道的是,我现在可以验证我的包并提交到应用程序商店。
回答by Geri Borbás
Just turn off Associated Domainsin 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).
只需在您的 App ID(在 developer.apple.com 上)关闭关联域,然后创建一个新的分发配置文件(如果您没有手动创建配置文件,那么至少删除之前的)。
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).
在我看来,即使您关闭服务,该值也会留在配置文件中。如果您在提交应用程序之前打开权利详细信息,您可以看到该com.apple.developer.associated-domains
权利(直到它被删除)。
Having this, you don't need the fake entitlement entry.
有了这个,您就不需要虚假的权利条目了。
回答by Shobhit C
Try appending "applinks:" before your associated domain name under Associated Domains in Project Entitlement file (obviously, after enabling Associated Domains from Capabilities).
尝试在项目权利文件中关联域下的关联域名之前附加“applinks:”(显然,在从功能启用关联域之后)。
回答by Dan Rosenstark
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).
如果您在使用 Apple Watch 时遇到此问题,则可能是您的 App ID 已在 Apple Developer Portal 中自动获得此属性,感谢 Xcode。您可能有三个 App ID(一个用于主应用,一个用于 watchkitapp,一个用于 watchkittextension)。
- Turn off Associated Domains in all three App IDs.
- Regenerate any provisioning profiles
- Refresh in Xcode
- 关闭所有三个 App ID 中的关联域。
- 重新生成任何配置文件
- 在 Xcode 中刷新
Ignore any instructions to go and delete your provisioning profiles manually. They refresh properly with no issues.
忽略任何手动删除您的配置文件的说明。它们可以正常刷新,没有任何问题。
回答by swiftBoy
For me it was "Provisioning profile "profile_name" doesn't support the Associated Domains capability."
对我来说,它是“配置文件“profile_name”不支持关联域功能。
and I had to Enable Domain capability in iTunes Account's Profile this
我必须在 iTunes 帐户的配置文件中启用域功能
Just update App ID configuration and profile and install in Xcode by double click on it.
只需更新 App ID 配置和配置文件,然后双击它就可以在 Xcode 中安装。
and it worked for me
它对我有用
回答by Zgpeace
I found the other two easily solution with project setting.
Solution 1.
Targets > select Target > Build Settings > Signing > clear Code Signing Entitlements.
我通过项目设置找到了另外两个简单的解决方案。
解决方案 1.
目标 > 选择目标 > 构建设置 > 签名 > 清除代码签名权利。
Solution 2.
project > *.entitlements > Entitlements File > remove Associated Domains.
解决方案 2.
project > *.entitlements > Entitlements File > remove Associated Domains。
回答by Mariano
Probably you cannot use the keyword "apple"
可能您不能使用关键字“apple”