Posts

Post not yet marked as solved
0 Replies
331 Views
*** 1/3/2020 No longer works We believe the issue is "Unable to access iCloud Account, can't find Cloud URL" ***294 let containerURL = FileManager.default.url(forUbiquityContainerIdentifier: nil)295 let documentDirectoryURL = containerURL!.appendingPathComponent("Documents")296 let documentURL = documentDirectoryURL.appendingPathComponent("myFile.txt")Fatal error: Unexpectedly found nil while unwrapping an Optional value: file Automated/View2.swift, line 2952020-01-03 21:24:05.435190-0500 [3132:149223] Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /UsersWhy now 1 year later is the ubiquityURL nil?We believe the issue is "Unable to access iCloud Account"
Posted Last updated
.
Post not yet marked as solved
0 Replies
294 Views
Write to iCloud Drive has stopped working on all apps.*** 1/3/2020 No longer works We believe the issue is "Unable to access iCloud Account, can't find Cloud URL" ***A device update has made the URL to the iCloud Drive nil. How can we recover from this?Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Users/ on line 295Exp.294 let containerURL = FileManager.default.url(forUbiquityContainerIdentifier: nil)295 let documentDirectoryURL = containerURL!.appendingPathComponent("Documents")296 let documentURL = documentDirectoryURL.appendingPathComponent("myFile.txt")
Posted Last updated
.
Post not yet marked as solved
0 Replies
680 Views
The return from the back-end Server is ignored, would like to send the charge.id, charge.status and price to the Stripe Dashboard.The guard let token = token,error == nil else is never processed. The variables are empty.Exp.func paymentAuthorizationViewController(_ controller: PKPaymentAuthorizationViewController, didAuthorizePayment payment: PKPayment,completion: @escaping (PKPaymentAuthorizationStatus) -> Void) {Skips to the end STPAPIClient.shared().createToken(with: payment) { (token: STPToken?, error: Error?) in guard let token = token, error == nil else { // Present error to user... //completion(.failure) return } self.submitTokenToBackend(token, completion: { (error: Error?) in if error != nil { // Present error to user... // Notify payment authorization view controller completion(.failure) } else { // Save payment success paymentSucceeded = true // Notify payment authorization view controller completion(.success) } }) } // end else } //end func
Posted Last updated
.