问题 Given Data and its UTI, what's the proper way to convert it to JPEG? PHImageManager.default().requestImageData(for: asset, options: options, resultHandler: { (imageData: Data?, dataUTI: String?, _, _) in guard let imageData = imageData, let dataUTI = dataUTI else { return } if !UTTypeConformsTo(dataUTI as CFString, kUTTypeJPEG) { //TODO: Convert to JPEG } }) 回答1: Just had this issue with the PHImageManager returning the data as .heic instead .jpeg, this worked for me: PHImageManager.default()