I introduced AdMob version 7.42.1 to my app and uploaded the binaries to App Store Connect, but I was notified by Apple that the binaries were invalid.
The reason is that there is no NSPhotoLibraryUsageDescription setting in info.plist.
However, the app does not use a photo library.
This time, AdMob has also been updated to the latest version in line with the app version upgrade.
In apps that introduced previous AdMob versions, it was not necessary to set the NSPhotoLibraryUsageDescription key in info.plist, so I think that the NSPhotoLibraryUsageDescription key has been changed to be necessary in the current AdMob version.
I do n’t think I ’ll need access to the photo library to display ads, and allowing access to unnecessary photo libraries can be annoying to app users.
We want you to eliminate access to unnecessary photo libraries and avoid setting the NSPhotoLibraryUsageDescription key.
The following is a notification message when the binaries are disabled after uploading the app binaries to App Store Connect.
ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSPhotoLibraryUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs.