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

VotersStop watchingWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.3.1
    • Fix Version/s: None
    • Component/s: cordova-ios
    • Labels:
      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

            • Assignee:
              surajpindoria Suraj Pindoria
              Reporter:
              ronaldozanoni Ronaldo Zanoni

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment