Open tielur opened 7 years ago
It seems like the Apple app store code analysis is seeing the use of EKEventStore within the ClusterPrePermissions library and rejecting the app unless I include the NSCalendarsUsageDescription
in the Info.plist.
Hey there,
Yeah, this has been on my mind for a while, ever since Apple announced that people will need usage descriptions filled out in their apps.
The easiest thing to do for now would be to go ahead and add the usage descriptions for:
NSCalendarsUsageDescription
NSPhotoLibraryUsageDescription
NSCameraUsageDescription
NSMicrophoneUsageDescription
NSCalendarsUsageDescription
NSLocationWhenInUseUsageDescription
NSLocationAlwaysUsageDescription
... to your app's Info.plist.
The real fix would be to either:
#ifdef
statements all over the place, orThe problem with (1) is that it makes the code ugly, and adding new permissions will continue to be hard/unmaintainable. The problem with (2) is the extra cognitive load of managing the pods.
Solution (3) is the ideal one, I think. Especially given that the library is still using UIAlertViews
and all. A Swift-based solution might help tremendously, with typed enums and enums with associated values.
I received this warning when I recently submitted an app that uses ClusterPrePermissions from the app store:
I'm not using the Calendar permissions at all, I'm only using microphone permissions.