Provisioning profile "" doesn't support the Apple Pay and Wallet capabilities解決辦法

 
 

項目需要使用兩個bundle id打包,一個對應個人開發賬號,另一個對應企業開發賬號,個人開發賬號支持Wallet和Apple Pay,但是企業開發賬號不支持這兩個Capability,使用企業證書打包的時候,報錯:Provisioning profile 「企業證書」 doesn't support the Apple Pay and Wallet capabilities.Code Signing Error: Provisioning profile "企業證書" doesn't include the com.apple.developer.in-app-payments and com.apple.developer.pass-type-identifiers entitlements.

解決辦法如下:1)關閉Apple Pay Capability2)刪除.entitlements文件的Pass Type IDs 如下圖

屏幕快照 2017-09-25 下午5.41.33.png

3)Build一下...

最終,Capabilities中會變成這樣:


如果Build仍然不成功,再次重複以上步驟,多試幾次就可以了注意:這種方法,只能解決你無法打包的問題,打出來的包Apple Pay功能是無法正常使用的。