"无法连接到iTunes商店" [英] "Cannot connect to iTunes Store"
问题描述
昨晚在应用内购买并没有显示在iOS7模拟器设备,但今天我甚至没有改变code和我开始在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 {
和在viewdid负载产品requst
and product requst in viewdid load
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.
三月左右,26日/ 27日开始,似乎发送到应用商店
使用商店套件
所有请求将返回以下错误之一:
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:
-
错误域= SKErrorDomain code = 0无法连接到iTunes商店的UserInfo = 0x18433a50 {NSLocalizedDescription =无法连接到iTunes商店}
错误域= SSErrorDomain code = 2无法连接到iTunes商店的UserInfo = 0x170272100 {NSLocalizedDescription =无法连接到iTunes商店}
- 受到影响:构建一个
开发签署了 -
,企业 -
或特设档案
- 不影响:住建于
应用商店
与分发型材签署
- affected: builds signed with a
Development-
,Enterprise-
orAd Hoc-Profile
- not affected: live builds in the
App Store
signed with aDistribution-Profile
刚刚提出在苹果的bug报告。我会及时向大家发布。
Just filed in a bug report to Apple. I will keep you updated.
看起来像苹果公司得到了解决问题和单边行动计划的再次合作。
Looks like Apple got the issue solved, and IAPs are working again.
这篇关于"无法连接到iTunes商店"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!