Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSCameraUsageDescription #38

Open
tsargent opened this issue Jan 22, 2024 · 8 comments
Open

NSCameraUsageDescription #38

tsargent opened this issue Jan 22, 2024 · 8 comments

Comments

@tsargent
Copy link

I am using the library in a simple app and am getting a rejection from Apple TestFlight because of the following error:

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 “TurtleTuner.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.

This seems very unrelated to react-native-pitch-detector, but when I remove the dependency, the app gets accepted on TestFlight.

My repo: https://github.com/tsargent/turtle-tuner

This commit does not get rejected from TestFlight, and it simply removes the dependency: tsargent/turtle-tuner@67d4a52

Am I missing something with permissions? Why would I need camera permissions?

@1fabiopereira
Copy link
Owner

I am using the library in a simple app and am getting a rejection from Apple TestFlight because of the following error:

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 “TurtleTuner.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.

This seems very unrelated to react-native-pitch-detector, but when I remove the dependency, the app gets accepted on TestFlight.

My repo: https://github.com/tsargent/turtle-tuner

This commit does not get rejected from TestFlight, and it simply removes the dependency: tsargent/turtle-tuner@67d4a52

Am I missing something with permissions? Why would I need camera permissions?

I’ll check that, it’s strange behavior, I’m sure that I didn’t use any camera resource.

@1fabiopereira
Copy link
Owner

1fabiopereira commented Jan 25, 2024

@tsargent I checked all code and I didn't found nothing that use camera permission, the only possibility is a react-native-permission library bug, that is used to access microphone. I updated dependency version on this branch. Could you install and verify if issue still?

@tsargent
Copy link
Author

Thank you @1fabiopereira. I tried your branch and I still get the error when I attempt to distribute it to TestFlight. Very strange. I will keep investigating.

@1fabiopereira
Copy link
Owner

Thank you @1fabiopereira. I tried your branch and I still get the error when I attempt to distribute it to TestFlight. Very strange. I will keep investigating.

I'll investigating too, if I found something relevant I tell you.

@cursan-a
Copy link

cursan-a commented Apr 27, 2024

Hello @tsargent and @1fabiopereira! FYI: I got exactly the same issue with a simple project too. Same as you I didn't found any reason of why your dependency generate this problem 🤷‍♂️.

PS: thanks for your amazing work on this repo @1fabiopereira

@1fabiopereira
Copy link
Owner

@cursan-a Thanks for reporting, I'll check again as it doesn't make any sense.

@pm2877
Copy link

pm2877 commented Jun 19, 2024

Any updates on this? I want to use this repo for a project. But this issue is concerning.

@1fabiopereira
Copy link
Owner

@pm2877 I could not reproduce the problem, but my only suspicion is something in the permission lib, we are planning to remove the permission lib and leave it to the developer to insert the lib you want. We are start talk about it in #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants