BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.24k stars 4.61k forks source link

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

Open isadon opened 7 years ago

isadon commented 7 years ago

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?

Sumit-2singh commented 6 years ago

@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

isadon commented 6 years ago

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.

hezhk3 commented 5 years ago

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