說明
用企業證書編譯XCode 11 的代碼時,提示錯誤
Provisioning profile doesn't support the Associated Domains capability.
或者
Provisioning profile "****.***.***" doesn't support the Associated Domains capability.
Root Cause 是同事增加了Universal Link,需要在開發者中心去配置Associated domain,如果不需要被別的APP喚起,可以通過下面的方法,暫時屏蔽掉。如果需要開啓可以通過方法一,逆操作添加即可。
解決方法一
- 登錄開發者賬號https://developer.apple.com/
- 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.’
解決方法二
Targets > select Target > Build Settings > Signing > 刪掉 Code Signing Entitlements.
解決方法三
project > *.entitlements > Entitlements File > 刪除 Associated Domains.
參考
https://stackoverflow.com/questions/25784728/com-apple-developer-associated-domains-issue-when-validating-ios-app
https://www.shareintelli.com/850/