You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kerri Shotts (JIRA)" <ji...@apache.org> on 2017/02/13 04:39:41 UTC

[jira] [Commented] (CB-12402) Apps with ampersand (&) in the name throw build error in cordova-ios@4.3.0+

    [ https://issues.apache.org/jira/browse/CB-12402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15863202#comment-15863202 ] 

Kerri Shotts commented on CB-12402:
-----------------------------------

Note: I had to use the &amp;amp; entity in order to duplicate this issue with iOS@4.3.1. 

Side note: Using an ampersand directly failed at adding the platform with the following error:

{code}
Parsing /<snip>/config.xml failed
Error: Invalid character in entity name
Line: 2
Column: 16
Char:
{code}

Since an ampersand on its own is invalid XML, this is an expected failure, but I'm not sure that I would get that solely from the error message. Maybe we need a friendlier message? Of particular pain in this case -- the ampersand isn't anywhere in the error message.

> Apps with ampersand (&) in the name throw build error in cordova-ios@4.3.0+
> ---------------------------------------------------------------------------
>
>                 Key: CB-12402
>                 URL: https://issues.apache.org/jira/browse/CB-12402
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 4.3.0
>            Reporter: Sven Tobback
>            Priority: Blocker
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org