Error: CUICatalog: Invalid asset name supplied: (null), or invalid scale factor : 2.000000

manish singh picture manish singh · Feb 25, 2014 · Viewed 78.8k times · Source
TableViewApplication[1458:70b] CUICatalog: Invalid asset name supplied: (null), or invalid scale factor: 2.000000

Screenshot added

Getting this warning while working with TableViewController. How to rectify this error and which block is affected?

Answer

tt.Kilew picture tt.Kilew · May 6, 2015

This one appears when someone is trying to put nil in [UIImage imageNamed:]

Add symbolic breakpoint for [UIImage imageNamed:]Symbolic breakpoint example

Add $arg3 == nil condition on Simulator, $r0 == nil condition on 32-bit iPhone, or $x2 == nil on 64-bit iPhone.

Run your application and see where debugger will stop.

P.S. Keep in mind this also happens if image name is empty string. You can check this by adding [(NSString*)$x2 length] == 0 to the condition.