简体   繁体   中英

How can I clear iOS IAP receipts for non-consumables on test devices?

In attempting to clear non-consumable sandbox IAP receipts from my test device, I have tried:

  • use a different sandbox test user DONE
  • delete app from XCode organizer DONE

Still didn't work, so I suspected that the receipt may be being restored from my iCloud account, even though this shouldn't be happening for a sandbox purchase. Therefore I also tried:

  • removing iCloud entitlements from my app build, signing into a new test user account, deleting the app, deploying locally DONE

Still no luck.

BTW, I'm using MKStoreKit.

Anybody have a solution for this?

Thanks

follow these steps :

1) sign out from iTunes account.

2) call [[MKStoreManager sharedManager] removeAllKeychainData] method

3) call in app code and on popup enter User detail and password.

this works for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM