简体   繁体   English

多个开发者帐户上的多个 Apple Pay 商家 ID

[英]Multiple Apple pay merchant Ids on multiple developer accounts

I have a project with a number of different build configurations, 4 for one developer account and 3 for another, each having production, alpha and beta build configurations and the first having a debug configuration.我有一个项目有许多不同的构建配置,一个开发者帐户有 4 个,另一个有 3 个,每个都有生产、alpha 和 beta 构建配置,第一个有调试配置。 all 7 have different bundle ids所有 7 个都有不同的包 ID

each developer account has apply pay setup with it's own set of apple pay merchant ids.每个开发者帐户都使用自己的一组 Apple Pay 商家 ID 申请支付设置。

Im getting the error that one build configuration's provisioning profile is missing support for the other developer account's merchant id and vice versa, they work fine if i delete the build configurations from the other developer account but when they are both in the project the error comes up.我收到一个错误,即一个构建配置的配置文件缺少对另一个开发者帐户的商家 ID 的支持,反之亦然,如果我从另一个开发者帐户中删除构建配置,它们可以正常工作,但是当它们都在项目中时,就会出现错误.

Is there a workaround for this?有解决方法吗? am i missing something to tell the build configuration to only use it's own merchant id?我是否错过了告诉构建配置仅使用它自己的商家 ID 的内容?

Since the targets use the same entitlements to modify the capabilities such as Apple Pay , Associated Domain and Push Notifications etc.由于目标使用相同的entitlements来修改Apple PayAssociated DomainPush Notifications等功能。

My solutions:我的解决方案:

  1. Create the .entitlements files individually.单独创建.entitlements文件。

  2. Targets → Build PhasesCopy Bundle Resources and link the correct .entitlements file.目标 → Build PhasesCopy Bundle Resources并链接正确的.entitlements文件。

  3. Targets → Build SettingsSigningCode Signing Entitlements and link the correct .entitlements file. Targets → Build SettingsSigningCode Signing Entitlements并链接正确的.entitlements文件。

  4. Back to Signing & Capabilities , now you could set it successfully :)回到Signing & Capabilities ,现在您可以成功设置它:)

Hope it works for you!希望它对你有用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM