Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. all 7 have different bundle ids

each developer account has apply pay setup with it’s own set of apple pay merchant ids.

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.

Is there a workaround for this? am i missing something to tell the build configuration to only use it’s own merchant id?

like image 463
richy Avatar asked Aug 09 '17 22:08

richy


1 Answers

Since the targets use the same entitlements to modify the capabilities such as Apple Pay, Associated Domain and Push Notifications etc.

My solutions:

  1. Create the .entitlements files individually.

  2. Targets → Build PhasesCopy Bundle Resources and link the correct .entitlements file.

  3. Targets → Build SettingsSigningCode Signing Entitlements and link the correct .entitlements file.

  4. Back to Signing & Capabilities, now you could set it successfully :)

Hope it works for you!

like image 116
Nia Avatar answered Oct 14 '22 04:10

Nia