Alex Rivera | Logout

How can I reset sandboxed in-app purchases on iOS for testing?

Asked 2011-09-29T23:47:13.280
9

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.

I'm using MKStoreKit.

Any ideas?

Edit
Report

1 Answer

21

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.

answered 2011-09-30T00:53:01.293

Your Answer