可以在App 8中使用IOS 8(XCode 6)模拟器进行测试吗?
我一直在寻找有关In App Purchases是否可以使用XCode 6在模拟器上进行实际测试的相互矛盾的信息。有些答案说'是',其他答案似乎表明测试版中存在错误Xcode 6和其他人平了'没有'。
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 indicate there are a bug in beta versions of Xcode 6 and others flat out 'no'.
我有一个应用程序,其中IAP在设备上运行良好,但在模拟器中,尝试刷新收据失败,消息非常无用:错误域= SKErrorDomain代码= 0操作无法完成。(SKErrorDomain错误0。)
。
I have an app where IAP works great on the device, but in the simulator, trying to refresh the receipt fails with a very unhelpful message: Error Domain=SKErrorDomain Code=0 "The operation couldn’t be completed. (SKErrorDomain error 0.)"
.
我的应用程序被应用程序商店拒绝,因为测试人员无法测试(即使它与设备上的沙盒帐户完美配合),我开始怀疑他们只是在模拟器上测试但无法继续。
由于我已经阅读了很多关于它不能在模拟器上工作而你必须在设备上进行测试,我并不担心它不能在模拟器上工作但这可能会让我陷入困境。
My app was rejected from the app store because the tester could not test (even though it works perfectly with sandbox accounts on devices) and I am beginning to suspect that they simply tested on a simulator and were not able to proceed.
Since I had read so much about it not working on a simulator and that you had to test on a device, I didn't worry about it not working on the simulator but that may have bitten me in the backside.
有人可以说他们实际上已经让IAP在IOS 8 / Xcode 6模拟器上工作吗?
Can anyone say that they have actually gotten IAP to work on IOS 8 / Xcode 6 simulators?
当在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.