[英]Testing In App Purchases - Cannot Connect to iTunes Store
I'm returning to some code I wrote in 2012. Back then, I had created a wrapper for the StoreKit framework that also did receipt validation using the sandbox URL for iTunes. 我将返回2012年编写的一些代码。那时,我为StoreKit框架创建了一个包装器,该包装器还使用iTunes的沙箱URL进行了收据验证。
Since it's been so long, I looked through the StoreKit docs and AFAIK, nothing's changed. 既然已经这么久了,我浏览了StoreKit文档和AFAIK,没有任何改变。
For some reason, I can't test my In App Purchases anymore because I get the above error (Cannot Connect to iTunes Store) and the sandbox servers seem to be down ( http://sandbox.itunes.apple.com/ ). 由于某些原因,由于出现上述错误(无法连接到iTunes Store)并且沙箱服务器似乎已关闭( http://sandbox.itunes.apple.com/ ),我无法再测试我的应用程序内购买。
It's been down for the past 2 days. 在过去的两天里下降了。 Is this normal?
这正常吗? Or has the process for testing changed since when I first wrote this code?
还是自我第一次编写此代码以来更改了测试过程?
In most of the cases like this, if you test it out in simulator (iOS 6/7/8) - you will get more about the error using [error localizedDescription]
. 在大多数情况下,如果您在模拟器(iOS 6/7/8)中对其进行测试,则可以使用
[error localizedDescription]
获得有关该错误的更多信息。
The reasons can be numerous - most of the time it is caused by nonsandbox user. 原因可能是多种多样的-大多数情况下是由非沙盒用户引起的。 But it can be caused by reasons like app ID not matching that on itunes connect server too.
但这可能是由于诸如iTunes ID连接服务器上的应用ID不匹配之类的原因引起的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.