“无法连接到 iTunes Store" [英] "Cannot connect to iTunes Store"
问题描述
昨晚在 iOS7 模拟器设备上没有显示应用程序内购买,但今天我什至没有更改代码,我也开始在 iOS 8 设备上遇到相同的错误.这是我的课
Last night In-App Purchases were not showing on iOS7 simulator devices but today I didn't even change the code and I started getting the same error on iOS 8 devices as well. this is my class
class InAppC: UITableViewController, SKProductsRequestDelegate, SKPaymentTransactionObserver {
查看加载中的产品需求
if (SKPaymentQueue.canMakePayments()) {
var productIDs:NSSet = NSSet(objects: productOne, productTwo, productThree, productFour, productFive)
var productsRequest:SKProductsRequest = SKProductsRequest(productIdentifiers: productIDs)
productsRequest.delegate = self
productsRequest.start()
}else{
println("can't make purchases")
}
这是委托函数
func productsRequest(request: SKProductsRequest!, didReceiveResponse response: SKProductsResponse!) {
println("product found")
}
func request(request: SKRequest!, didFailWithError error: NSError!) {
println(error.localizedDescription)
}
我不确定为什么会发生这种情况,因为它昨晚列出了所有产品.
I'm not sure why this is happening because it was listing all the products last night.
编辑 - 我刚刚在运行 iOS 7 的设备上进行了测试,但我在设备上也遇到了同样的错误.
Edit- I just tested on my device running iOS 7 but I'm getting same error on device as well.
推荐答案
这并没有提供问题的解决方案,但我将在这里分享我的调查,以供其他遇到这些问题的人使用.
This does not provide a solution for the problem, but I'm going to share my investigation here, for other people that experience these issues, too.
>
关于问题
从 3 月 26 日/27 日左右开始,似乎所有使用 Store Kit
发送到 App Store
的请求都将返回以下错误之一:
Starting around March, 26th / 27th, it seems that all requests sent to the App Store
using Store Kit
will return one of the following errors:
Error Domain=SKErrorDomain Code=0无法连接到 iTunes Store" UserInfo=0x18433a50 {NSLocalizedDescription=无法连接到 iTunes Store}
Error Domain=SSErrorDomain Code=2无法连接到 iTunes Store" UserInfo=0x170272100 {NSLocalizedDescription=无法连接到 iTunes Store}
- 受影响:使用
Development-
、Enterprise-
或Ad Hoc-Profile
签名的构建 > - 不受影响:
App Store
中使用Distribution-Profile
签名的实时构建
- affected: builds signed with a
Development-
,Enterprise-
orAd Hoc-Profile
- not affected: live builds in the
App Store
signed with aDistribution-Profile
刚刚向 Apple 提交了错误报告.我会及时通知您.
Just filed in a bug report to Apple. I will keep you updated.
看起来 Apple 解决了这个问题,IAP 又可以正常工作了.
Looks like Apple got the issue solved, and IAPs are working again.
这篇关于“无法连接到 iTunes Store"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!