Home / IOS Development / ios – Crash when creating UIImage from data

ios – Crash when creating UIImage from data



In the application I try to start one UIImage from Data. I̵

7;ve seen some crash logs coming in from the App Store Connect showing that my code is crashing on this line:

guard let data = photo.data, let image = UIImage(data: data) else { return nil }

Below is the backtrack. PhotoCache is the last object I have control over, and .imageFor(_:) is the method the line above is contained in.

    Crash logger

What is PFEvanscentData, and what could cause it to crash in this scenario?


Source link