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

Robbe Van der Gucht commented on CB-4148:
-----------------------------------------

Similar problems happen in Android as said in duplicate 
bug(https://issues.apache.org/jira/browse/CB-4343)
This is because the {{<name>}} element data is used directly as _file name_ and 
_class name_ for the Java file.

For example {{cordova create HelloWorld com.me.hello "Hello World!"}} will 
result in Java class {{HelloWorld\platforms\android\src\com\me\hello\Hello 
World!.java}}.
Even in the code this will be "{{public class Hello world! extends DroidGap}}", 
this is not valid Java en will result in a compile time error. (However the 
user is at no point notified of this, I think the user should at least get to 
know that {{cordova build}} failed.)

I mailed with Steve Gill and said this was a documentation error. I stumbled on 
this while following the tutorial: 
http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface
 By now the documentation has been updated by Michael Brooks on github: 
https://github.com/phonegap/phonegap-docs/blob/master/docs/en/3.0.0/guide/cli/index.md
The current example doesn't use spaces anymore in the github docs 
repo.({{cordova create Hello com.me.hello HelloWorld}})

THIS IS HOWEVER THE WRONG WAY TO GO!
The config.xml should adhere to these standards: 
http://www.w3.org/TR/widgets/#configuration-document-0
This means spaces are allowed!
This is NOT a documentation error(, and if it is please update other 
documentation like https://build.phonegap.com/docs/app-building so that people 
like me can get to the most basic tutorials).

I hope this helps a bit. I'd help if I could but I am not completely sure on 
how to resolve this as I am unfamiliar with the code base or its design.
                
> Name element in www/config.xml can't have any spaces in it
> ----------------------------------------------------------
>
>                 Key: CB-4148
>                 URL: https://issues.apache.org/jira/browse/CB-4148
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.9.0
>         Environment: cordova 2.9.2 macos 10.7.5
>            Reporter: Dan Moore
>            Assignee: Filip Maj
>            Priority: Minor
>
> If you have a name element with spaces in it, you can build, but you can't 
> emulate in ios.
> With this config.xml:
> {noformat}
> <name>App Name With Spaces</name>
> ...
> {noformat}
> This is the error message displayed: 
> /path/to/app/platforms/ios/build/App_Name_With_Spaces.app not found to 
> emulate.
> Note that this doesn't cause any issues with Android, and that running 
> xcodebuild clean doesn't resolve this issue.  The only workaround I could 
> find was to re-checkout my application, and change the www/config.xml name 
> element to have no spaces, and re-add the ios platform.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to