Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5262

Adding config entries in plugin.xml for modifying .plist file results in whitespace entries for NSMainNibFile keys leading to App crashing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.2.0
    • None
    • MacOSX

    Description

      with the following in plugin.xml :

      <platform name="ios">
          <config-file target="*-Info.plist" parent="UIBackgroundModes">
              <array>
                 <string>location</string>
               </array>
          </config-file>        
      </platform>
      

      we get whitespaces in the generated info.plist :

      <key>NSMainNibFile</key>
      <string>
      
      </string>
      

      the app compile but crash at runtime as it looking at a non existing .nib file.

      the .plist can be modified manualy, allowing correct building, but this is a real major issue for automated compiling (eg: phonegap build)

      this issue seems to be related to https://issues.apache.org/jira/browse/CB-4731 but is more important as it lead to app crashing

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              textoo tex
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: