My code worked in the debug mode but when I generate the ipa it gives me some problems. I have already searched a lot on the internet, some say that I should add a permission to