cloudkit error no authToken received for asset
问题 Why do I get this error when I run the following code? : "Internal Error" (1/1000); "No authToken received for asset" I think it has something to do with the setObject code in the last line. let documentsDirectoryPath:NSString = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as NSString var imageURL: URL! let imageData = UIImageJPEGRepresentation(self.newImage, 1.0) let path:String = documentsDirectoryPath.appendingPathComponent(self.newImage.description)