无法在Xcode 9中为macOS应用测试应用内购买 [英] Cannot test in-app purchases in Xcode 9 for macOS app

查看:119
本文介绍了无法在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:

    1. In the App Store app Sign Out of your account (Store/Sign Out)
    2. In iTunes Connect create a brand new Tester
    3. Restart your computer
    4. Open your Xcode project
    5. Build & run
    6. Click on your Buy button to start a purchase
    7. Sign in with your newly created test account
    8. When prompted to Change the store click on Cancel
    9. 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屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆