Group Group Group Group Group Group Group Group Group

Ch 4: EXC_BAD_INSTRUCTION

#1

Hi Everyone,

I am working through chapter four right at about page 90. I am attempting to build the project and am getting a crash when attempting to open the sticker pack. I have done some research and have been trying to debug it but so far to no avail.

When the app crashes it points to a EXC_BAD_INSTRUCTION and to a specific line of code.

let url = Bundle.main.url(forResource: name, withExtension: “png”)!

My thought is this might have something to do with the force unwrapping so I have attempt to modify it a bit to not force unwrap and so far that has not worked yet either.

Any help would be appreciated!