ImageLiteral Issue on Xcode 14.2 HELP

I keep trying to insert imageLiteral since my class uses an older version of Xcode the function ain't the same so I was told to use #imageLiteral( then the option of picking an image from assets work I picked the image but as soon as I do get this error msg Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

what going on and how can I fix it ?