I got this when I run my app "EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)". See the code:
@IBAction func signUpAction(_ sender: Any) {
let email = emailTextField.text!.lowercased()
let finalEmail = email.trimmingCharacters(in: .whitespacesAndNewlines)
let username = usernameTextField.text!
let password = passwordTextField.text!
let firstLastName = firstLastNameTextField.text!
let pictureData = UIImageJPEGRepresentation(self.userImageView.image!, 0.7)// Here
I cannot delete ! because if I do so I will get an error. For more info, this is my logs "fatal error: unexpectedly found nil while unwrapping an Optional value". Do anyone knows how to fix it? Please help me. Thanks.