Open bdrelling opened 7 years ago
Yes, you have to add NSPhotoLibraryUsageDescription and NSCameraUsageDescription to your app's info.plist if you integrate RSBarcodes_Swift in your app.
Any logic trying to do this should just be added as an optional subspec to the pod. This isn't something that should be forced on someone just consuming the pod.
At some point, the sample was included in the pod directories, causing our app to get rejected when submitting to the app store with these two messages:
Using this link, I looked up references to the mentioned API Requiring Usage Description: https://developer.apple.com/library/content/qa/qa1937/_index.html
The only instance of
AVCaptureDeviceInput
is in theRSCodeReaderViewController.swift
withinRSBarcodesSample
.RSCodeReaderViewController.swift:123-129
Your pod shouldn't be doing something like this without having it as an optional subspec. Also, anything from a Sample project shouldn't be included in the podspec.