Can In App Purchases be tested in the IOS 8 (Xcode 6) Simulator?

后端 未结 2 431
野的像风
野的像风 2021-02-05 08:46

I keep finding conflicting information about whether In App Purchases can actually be tested on a simulator using Xcode 6. Some answers say \'yes\', others seem to indi

相关标签:
2条回答
  • 2021-02-05 08:47

    Most of the StoreKit sandbox does mysteriously now seem to work when using a debug-build iOS 8 target in the Xcode 6 simulator.

    You can't buy an auto-renewing subscription though. You get as far as the final confirmation dialog but after that the transaction always comes back with a transactionState of SKPaymentTransactionStateFailed. Same code works on the device. I reported this on Radar, but Apple replied that StoreKit is not supported in the simulator, which is weird given that it does all seem very close to working.

    0 讨论(0)
  • 2021-02-05 09:09

    Actually, i have been tested in-app purchase in xcode 6 / iOS 8 simulator and it just work perfect (sandbox purchase and restore). However the other simulators (iOS 7.0.3 and 7.1) was not work for IAP.

    So, the answer is yes.

    Does your app contain verification methods for IAP receipt ? May be it is seemed too simple but are you sure that the verifications control not with https://sandbox.itunes.apple.com/verifyReceipt

    0 讨论(0)
提交回复
热议问题