gorastudio-git / SCNRecorder

The best way to record your AR experience!
MIT License
201 stars 51 forks source link

Requires NSCameraUsageDescription always #43

Closed giomurru closed 2 years ago

giomurru commented 2 years ago

When I submit to appstore connect I get an error saying that it is required to have NSCameraUsageDescription key, even though I am not using the camera because I am recording only a ScnView. Is there a way to disable the part relative to the camera API in the SDK so that Apple does not require NSCameraUsageDescription key?

v-grigoriev commented 2 years ago

Hi @giomurru, a good catch. The SDK doesn't use the camera by any means. But I think it happens because the SDK imports ARKit in several places. So, you can safely give any NSCameraUsageDescription. And I can look at moving ARKit-related functionality to a submodule.

v-grigoriev commented 2 years ago

@giomurru What dependency manager are you using? Cocoapods?

giomurru commented 2 years ago

Thank you. That would be great. Yes I am using Cocapods.

giomurru commented 2 years ago

@v-grigoriev I found the file that is causing the issue. :-) It's AVCaptureSession+BaseRecorder.swift Since I am not using it I just removed it from the target membership and now when I submit the app to appstoreconnect I don't have any missing NSCameraUsageDescription error.