I got quick solution for any Xcode version
step:1 enter all the code in comment
//diceImageView1.image = imageLiteral(resourceName: "DiceSix");
step:2 choose your image based on your choice by entering image name in between semicolon
step3: uncomment your line and boom its gonna work for sure
mohammed iftekhar