Roman
Roman

Reputation: 1055

In-app purchase "Cannot connect to iTunes Store" Xcode 8.3

In iPhone I see this data

enter image description here

and then I get an error "Cannot connect to iTunes Store".

Transaction Error: Optional("Cannot connect to iTunes Store")

The code where the error appears

private func fail(transaction: SKPaymentTransaction) {
        print("fail...")
        if let transactionError = transaction.error as? NSError {
            if transactionError.code != SKError.paymentCancelled.rawValue {
                print("Transaction Error: \(transaction.error?.localizedDescription)")
            }
        }

Now I check:

Previously everything worked fine (swift 3, Xcode Version 8.2.1)

Upvotes: 0

Views: 1009

Answers (1)

Roman
Roman

Reputation: 1055

Today iTunes Sandbox earned, without any changes without any updates. I think yesterday servers were not work. But why Apple can not be told about this so that developers will not do unnecessary work!!!

Upvotes: 0

Related Questions