Reply to Xcode 12.4: Image Literal returns error message yes it works when you need one image, diceImageView1.image = #imageLiteral( but when you need array of images this is not working , there is a problem Developer Tools & Services Xcode Jan ’22