RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
232 stars 28 forks source link

How to remove camera related API calls from iOS build? #1389

Closed fengx1024 closed 1 year ago

fengx1024 commented 1 year ago

Question

We don't use any webcam-related features but still get this from Apple after uploading the iOS build:

ITMS-90683: Missing purpose string in Info.plist - Your app’s code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access. The Info.plist file for the “xxx.app” bundle should contain a NSCameraUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. If you’re using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. For details, visit: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources.

How can we exclude the offending API calls from the build?

MorrisRH commented 1 year ago

I don't think this is anything we can help you with as we don't use any of the camera related APIs in AVPro Video.

fengx1024 commented 1 year ago

@MorrisRH Sorry, my mistake. We are using the AVPro Movie Capture plugin. I have just created an issue there: https://github.com/RenderHeads/UnityPlugin-AVProMovieCapture/issues/224