0 Replies Latest reply on Dec 12, 2017 9:46 AM by _lashiv

    [ios] Best practices to update Info.plist with config.xml

    _lashiv Level 1

      I'm having trouble keeping the Info.plist updated for the iOS platform. The Info.plist does not seem to be picking up the strings updated in the config.xml. For example, the Geolocation plugin that is currently in my project has this entry in the config.xml:


          <plugin name="cordova-plugin-geolocation" spec="^3.0.0">

              <variable name="GEOLOCATION_USAGE_DESCRIPTION" value="GPS position used to find nearby Spots" />



      On each build, when I view in Xcode the entry for Geolocation has an empty string.

      Screen Shot 2017-12-12 at 9.44.06 AM.png


      How do I fix this problem? Solutions I tried was to remove and re-add the ios platform using the `cordova platform` command. I want to avoid going into Xcode each time to fix this problem.