Reply to Xcode 12.4: Image Literal returns error message To be on the safer side make sure to type the code complete like this diceImageView1.image = #imageLiteral() Developer Tools & Services Xcode Jan ’22