更新时间:2023-10-20 21:33:40
当在Xcode 6模拟器中使用调试构建的iOS 8目标时,大多数StoreKit沙箱现在看起来神秘。
Most of the StoreKit sandbox does mysteriously now seem to work when using a debug-build iOS 8 target in the Xcode 6 simulator.
但您无法购买自动续订订阅。您将获得最终确认对话框,但在此之后,事务总是返回一个事务状态为SKPaymentTransactionStateFailed。相同的代码适用于设备。我在Radar上报告过这个问题,但Apple回复说模拟器不支持StoreKit,这很奇怪,因为它看起来非常接近工作。
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.