我在appstoreconnect上创建了一个应用,并添加了可自动更新的inApp购买。状态为准备提交。
但是当我使用下面的代码-
let productIDs = Set(["product_identifier"])
let request = SKProductsRequest(productIdentifiers: productIDs)
request.delegate = self
request.start()
它总是落在
func request(_ request: SKRequest, didFailWithError error: Error) {
}
错误是-
Error Domain=NSURLErrorDomain Code=-999 "Cannot connect to iTunes Store" UserInfo={NSErrorFailingURLStringKey=https://192.168.1.1/sgerror.php?url=403%20&a=192.168.1.102&n=192.168.1.102&i=&s=default&t=blk_BL_music&u=http://sandbox.itunes.apple.com/WebObjects/MZInit.woa/wa/initiateSession?ix=6&os=12&locale=en_IN, NSErrorFailingURLKey=https://192.168.1.1/sgerror.php?url=403%20&a=192.168.1.102&n=192.168.1.102&i=&s=default&t=blk_BL_music&u=http://sandbox.itunes.apple.com/WebObjects/MZInit.woa/wa/initiateSession?ix=6&os=12&locale=en_IN, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <96039754-C60C-49C6-BC2F-07E237E8E691>.<258>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <96039754-C60C-49C6-BC2F-07E237E8E691>.<258>, NSLocalizedDescription=Cannot connect to iTunes Store}
注意:“我的付费应用协议”有效
答案 0 :(得分:0)
我的WiFi出现问题,一切都在移动网络上运行。