Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIImagePickerController not asking for permissions on iOS 9

I have an iOS app where I present an image picker the

self.picker = [[UIImagePickerController alloc] init];
self.picker.delegate = self;
self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

self.popover = [[UIPopoverController alloc] initWithContentViewController:self.picker];
[self.popover presentPopoverFromRect:CGRectMake(100, 100, 1, 1) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

The app however doesn't ask for permissions at all, it just displays the error message "This app does not have access to your photos or videos".

Any ideas on what might cause this?

Thanks in advance!

like image 358
nitrogenhurricane Avatar asked Oct 08 '15 07:10

nitrogenhurricane


1 Answers

The issue was the the Bundle Display Name wasn't set in the Info.plist

like image 103
nitrogenhurricane Avatar answered Oct 09 '22 21:10

nitrogenhurricane