SIGABRT error every time I try to access camera or photo library

I'm trying to build two serperate apps that requires camera and photos access. I have the permissions request on in both situations. I am new to coding and using various tutorials to guide me. I try the tutorials in a plain app and everything works fine. As soon as I insert the code into the actual app I end up with a SIGABRT error. I have tried researching how to fix it, but hit dead ends at all passes. Any suggestions or direction pointing to help out?


Thanks!

Replies

Please show your code and whole output in the debug console.

Which persmissions have you asked ?


Did you define the Description Strings in the plist for each of them ?

You should have at least 2:

- Privacy - Camera Usage Description

- Privacy - Photo Library Usage Description