Error Appstore connect : Missing Purpose String in Info.plist File

EDIT April 2019 : You now have to add these two keys, as spring 2019 has begun. Note that NSLocationAlwaysUsageDescription is now deprecated (since iOS 11) and has been replaced with NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription. If you want to support lower than iOS 11, you’ll have to use the three values. To sum up you have … Read more

iOS: Access app-info.plist variables in code

Attributes from the info.plist for your project are directly accessible by the following… [[NSBundle mainBundle] objectForInfoDictionaryKey:key_name]; For example to get the version number you might do the following NSString *appVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@”CFBundleVersion”]; There is a gotcha in that the version number now has two attributes in the info.plist – but you get the … Read more

NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll

Thanks @rmaddy, I added this just after other key-string pairs in Info.plist and fixed the problem: <key>NSPhotoLibraryUsageDescription</key> <string>Photo Library Access Warning</string> Edit: I also ended up having similar problems on different components of my app. Ended up adding all these keys so far (after updating to Xcode8/iOS10): <key>NSPhotoLibraryUsageDescription</key> <string>This app requires access to the photo … Read more