Distribute Apple Pay app through enterprise account [closed]

こ雲淡風輕ζ 提交于 2019-12-09 05:47:48

问题


Enterprise accounts can't generate merchant id for Apple pay. Is there any way to distribute apps that support Apple pay through an enterprise account for beta testers or the only way to do so is to remove Apple Pay from the project?


回答1:


I ended up with those two solutions:

  • When the need of Apple Pay is the highest, distribute with Apple Pay through App Store account with adhoc distribution profile.

  • When the need for Enterprise distribution is the highest, distribute through the Enterprise account with adhoc distribution profile, and with Apple Pay Stubs https://github.com/stripe/ApplePayStubs from Stripe.

I go from one to the other depending on a pre-processor macro.




回答2:


I solved the issue by duplicating the target. I turned the Apple Pay capability off in my target used for enterprise and left it on for my App Store Distribution. I also defined a macro so that Apple Pay is disabled on our enterprise builds. This will not allow us to test Apple Pay with our beta testers but still allows us to distribute builds to whichever users we're targeting without build failures.



来源:https://stackoverflow.com/questions/27197855/distribute-apple-pay-app-through-enterprise-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!