Failed to load Quick Look data for "image"

I’m trying so that the quick view function of the new Xcode 5 can see my images in the debug area, but I get this message saying that my images cannot be viewed with Quick Look, it says: "Failed to load Quick View for "images" where "image" is the name of my variable.

Is this due to image size or is there something else? My image size is very large (width = 2448, height = 1224)

Thanks!

+6
source share
2 answers

I suggest you open the debugger variables panel when an image variable is active. Right-click and add an expression that should be a reference to an image variable. After selecting an expression, I will try to click the quick view icon, which will be included at the bottom of the variable screen. Please advise if this does not help otherwise do not hesitate to accept the answer.

(e.g. cell.imageView.image

Quick look

+4
source

For debugging purposes, when I definitely need an image (and usually can't quickly view it), I can see it using the following template:

CGImageRef imageRef = image.CGImage; CGImageRelease(imageRef); // put breakpoint here 

Then I need to take a quick look at imageRef. Remember to delete this line of code when you catch the error, as it eats the device’s resources and is a backup :)

BTW: Tommie's solution did not help me.

+3
source

Source: https://habr.com/ru/post/953389/


All Articles