Reputation: 1055
In iPhone I see this data
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:
iTunes Connect > Features > In-App Purchases - Approved
Use real device - Yes
Connecting to iTunes Sandbox - Yes
"Agreements, Tax, and Banking" of iTunes Connect - Ok
iOS Provisioning Profiles - Active (Type:iOS Distribution; Enabled Services: Game Center, In-App Purchase)
Sign out of iCloud on this device - Yes
Xcode > Capabilities > In-App Purchase - ON (Steps: Link StoreKit.framework - ok; Add the In-App Purchase feature to your App ID - ok)
delete Apple ID from Xcode and all profiles from /Users/****/Library/MobileDevice and re-uploaded everything
Use this tutorial
Previously everything worked fine (swift 3, Xcode Version 8.2.1)
Upvotes: 0
Views: 1009
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