无法在Xcode 9中为macOS应用测试应用内购买 [英] Cannot test in-app purchases in Xcode 9 for macOS app
本文介绍了无法在Xcode 9中为macOS应用测试应用内购买的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
自iOS11发布以来,测试应用内购买一直很痛苦(如果不是不可能)。虽然我在iOS上找到了一个很好的iOS测试解决方法:
完成交易
完成! 沮丧的时间节省了!感谢Apple:[
As of the release of iOS11 it has been a pain (if not impossible) testing in-app purchases. While I've found a great workaround for testing on iOS here: https://stackoverflow.com/a/46467498/4514671 I could not find anything for macOS apps.
解决方案
So here is what I did that kind of does the same as with the iOS workaround:
- In the App Store app Sign Out of your account (Store/Sign Out)
- In iTunes Connect create a brand new Tester
- Restart your computer
- Open your Xcode project
- Build & run
- Click on your Buy button to start a purchase
- Sign in with your newly created test account
- When prompted to Change the store click on Cancel
- Click on your Buy button to start a purchase again and the correct Buy Alert will pop up; finish the transaction by actually making the purchase
Done! Hours of frustration saved! Thanks Apple :[
这篇关于无法在Xcode 9中为macOS应用测试应用内购买的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文