Simulator doesn't ask for permission!!?

I am doing the app tutorial "Food Tracker" and on the simulator when I click to upload a picture, it doesn't ask me for permission and just goes to photos. Why is this? It even allowed me to access it when I removed the "ask permission thing" from info.plist

Replies

In iOS 11, it seems that UIImagePickerController does not expose the user's photo library to your app—the app only receives the one image that the user explicitly picks—so it doesn't require permission. See here: https://stackoverflow.com/questions/46404628/ios11-photo-library-access-is-possible-even-if-settings-are-set-to-never