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功能是无法正常使用的。