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

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

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 4.3.0, 4.3.1
    • cordova-ios@4.4.0
    • cordova-ios
    • None

    Description

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

      "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

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shazron Shazron Abdullah
            SvenT Sven Tobback
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment