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

Builds fails if app name contains preserved XML characters like &<>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.0
    • cordova-ios@4.4.0
    • cordova-ios
    • None
    • ios, xcode8.1, nodejs 6.9.1

    Description

      How to reproduce

      • Create new cordova app with name "You&Me"
      • add platform ios
      • start release build

      Effect

      The build fails due to corrupted xml files at platforms/ios/<APPNAME>.xcworkspace/**

      How to fix

      The app name seems to be inserted with illegal escaping:
      Wrong: <FileRef location = "group:You\&Me.xcodeproj">
      Correct: <FileRef location = "group:You&amp;Me.xcodeproj">

      I guess shell escaping () is used instead of proper xml quoting (entity) for attributes.

      Fix should be trivial as in prior versions of cordova-ios this worked well.

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              schauerte@sitewaerts.de Felix Schauerte
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: