pbreuss / wikitude-ionic-2-starter-app

This starter app is deprecated - please use wikitude-ionic-3-starter-app
https://github.com/pbreuss/wikitude-ionic-3-starter-app
21 stars 6 forks source link

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 7 years ago

monyoudom commented 7 years ago

after I build it in my xcode

pbreuss commented 7 years ago

Look at the instructions - you need to add plist permissions entries.

Von meinem iPhone gesendet

Am 25.05.2017 um 09:49 schrieb monyoudom notifications@github.com:

after I build it in my xcode

— dhus dzyi You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

monyoudom commented 7 years ago

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

mryechkin commented 7 years ago

@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.