问题 I'm trying to generate QR code with following code : DispatchQueue.main.async { let image = generateQRCode(from: qrCodeString) } func generateQRCode(from string: String?) -> UIImage? { if let data = string?.data(using: .utf8, allowLossyConversion: false) { if let filter = CIFilter(name: "CIQRCodeGenerator") { filter.setValue(data, forKey: "inputMessage") let transform = CGAffineTransform(scaleX: 5, y: 5) if let output = filter.outputImage?.transformed(by: transform) { return UIImage(ciImage: