GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Using GPUImage requires the NSCameraUsageDescription to have to be included in the app Info.plist

Open isadon opened this issue 6 years ago • 3 comments

It seems to me that GPUImage may be using some frameworks that is triggering Apple's AppStore checks to require a NSCameraUsageDescription. Is there anyway to prevent this?

isadon avatar Sep 30 '17 01:09 isadon

@donileo This issue is not related to GPUImageLibrary . :) its is related to iOS 10 and above where we need to add permission for camera ,Gallary ,Location in Application info.plist, if these feature are using in your application

Sumit-2singh avatar Dec 08 '17 09:12 Sumit-2singh

It is related to GPUImage. Normally when including the GPUImage library various many files get included that may not be needed on a project. For example: If using only blurring for images the GPUImage files for video may be included and must be manually removed. If not removed Apple’s API usage scans will detect these video camera files and prevent from your app since you dont include permissions for video camera usage.

When importing via cocoapods GPUImageVideoCamera.h and .m is imported into the project regardless of wether it is used or not triggering this issue. Manually removing this file and its dependencies resolves the issue as clearly only images are being acted on for example.

isadon avatar Dec 08 '17 15:12 isadon

But why you can't add NSCameraUsageDescription? The access request alert view won't show up until you use the camera.

hezhk3 avatar Jan 12 '19 05:01 hezhk3