Xcode證書錯誤 Provisioning profile does not support the Associated Domains capability

說明

用企業證書編譯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喚起,可以通過下面的方法,暫時屏蔽掉。如果需要開啓可以通過方法一,逆操作添加即可。

解決方法一

  1. 登錄開發者賬號https://developer.apple.com/
  2. Under ‘Certificates, Identifiers & Profiles’ in the Developer Member Center, choose your App ID under ‘Identifiers’, ‘App IDs’ in the left hand column.
    在這裏插入圖片描述
  3. 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/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章