如何在iOS上重置沙盒应用内购买以进行测试? [英] How can I reset sandboxed in-app purchases on iOS for testing?
问题描述
我做了一个沙盒iTunes用户,买了一个项目。这工作但我的代码中有一些问题用于显示项目。所以,我想重新购买它再次测试。问题是,我无法清除我的购买。我退出了我的沙箱用户,删除了应用程序并重新安装了它,更改了iTunes用户几次......该项目仍然显示为已购买。
I made a sandbox iTunes user, bought an item. That worked but there were some issues in my code for displaying the item. So, I want to re-buy it to test again. Problem is, I can't clear my purchases. I signed out my sandbox user, deleted the app and re-installed it, changed itunes users a few times... the item still shows up as purchased.
我' m使用MKStoreKit。
I'm using MKStoreKit.
任何想法?
推荐答案
好吧,我弄清楚了。 MKStoreKit将购买的商品保存到钥匙串中,即使您更改iTunes帐户或删除应用程序,钥匙串仍然存在。调用快速 [[MKStoreManager sharedManager] removeAllKeychainData];
重置内容。
Well, I figured it out. MKStoreKit saves purchased items to the keychain, which persists even if you change iTunes accounts or delete the app. Calling a quick [[MKStoreManager sharedManager] removeAllKeychainData];
reset things.
这篇关于如何在iOS上重置沙盒应用内购买以进行测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!