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

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data. (lldb) #7

Open
monyoudom opened this issue May 25, 2017 · 3 comments

Comments

@monyoudom
Copy link

after I build it in my xcode

@pbreuss
Copy link
Owner

pbreuss commented May 25, 2017 via email

@monyoudom
Copy link
Author

I already input the key but it still doesn't work

@mryechkin
Copy link

@monyoudom What I had to do was add those entries in config.xml using cordova-custom-config:

<platform name="ios">
        <config-file parent="NSCameraUsageDescription" platform="ios" target="*-Info.plist">
            <string>This app needs the camera for Augmented Reality</string>
        </config-file>
        <config-file parent="NSLocationWhenInUseUsageDescription" platform="ios" target="*-Info.plist">
            <string>This app needs your location for Geo AR</string>
        </config-file>
        <config-file parent="NSPhotoLibraryUsageDescription" platform="ios" target="*-Info.plist">
            <string>This app needs to access your photo gallery such that you can share your screenshots</string>
        </config-file>

        ...

</platform>

After this you'll need to remove the platform and add it again:

$ ionic cordova platform remove ios
$ ionic cordova platform add ios

I needed to do this because for me the Info.plist file wasn't there in the platforms directory.

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

3 participants