Cannot test in-app purchases in Xcode 9 for macOS app

我只是一个虾纸丫 提交于 2019-12-04 06:02:21

问题


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.


回答1:


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 :[



来源:https://stackoverflow.com/questions/46592844/cannot-test-in-app-purchases-in-xcode-9-for-macos-app

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