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

Apps with ampersand (&) in the name throw build error in cordova-ios@4.3.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 4.3.1
    • None
    • cordova-ios
    • None

    Description

      Cordova apps with an ampersand in the name give a build error in cordova-ios 4.3.1:

      "xcodebuild: error: Unable to load workspace 'Tom & Jerry.xcworkspace'.
      Reason: Could not open workspace file at ~/git/Tom & Jerry/platforms/ios/Tom & Jerry.xcworkspace/contents.xcworkspacedata"

      I found that the problem is with the .xcworkspace file. The ampersand doesn't get encoded in the XML files that are generated.

      PR that created the problem: https://github.com/apache/cordova-ios/pull/247

      Reproduce:

      1. run cordova create HelloCordova
      2. edit config.xml <name> tag inside to "Tom & Jerry"
      3. run cordova platform add ios@4.3.1
      4. run cordova build ios 
      --> ERROR

      NOTE: This was fixed in the cordova-ios 4.4.0, but that version has removed the IOS 8 support and we need that support yet.
      So, the solution is merge the branch origin/4.3.x with this pull request: https://github.com/apache/cordova-ios/pull/288
       

      Attachments

        Activity

          People

            surajpindoria Suraj Pindoria
            ronaldozanoni Ronaldo Zanoni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: