You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/07/24 19:32:39 UTC
[jira] [Commented] (CB-6992) iOS platform add/prepare fails if app
display name contains unicode characters.
[ https://issues.apache.org/jira/browse/CB-6992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14073411#comment-14073411 ]
ASF GitHub Bot commented on CB-6992:
------------------------------------
Github user grega commented on the pull request:
https://github.com/apache/cordova-lib/pull/40#issuecomment-50050846
I'm still seeing issues with this when using the é character in `config.xml`: `<name>Attaché</name>`
```
cordova platform add ios -d
Platform files for "ios" previously downloaded not from npm. Using that copy.
Creating ios project...
Running command: /Users/greg/.cordova/lib/ios/cordova/3.5.0/bin/create --arc --cli /Users/greg/Dropbox/Vagrant/attache/mobile/attache/platforms/ios com.ionicframework.attache Attaché
Command finished with error code 0: /Users/greg/.cordova/lib/ios/cordova/3.5.0/bin/create --arc,--cli,/Users/greg/Dropbox/Vagrant/attache/mobile/attache/platforms/ios,com.ionicframework.attache,Attaché
Generating config.xml from defaults for platform "ios"
Calling plugman.prepare for platform "ios"
Preparing ios project
Processing configuration changes for plugins.
Iterating over installed plugins: []
Writing out cordova_plugins.js...
Wrote out iOS Bundle Identifier to "com.ionicframework.attache"
Wrote out iOS Bundle Version to "0.0.2"
mv: dest file already exists: /Users/greg/Dropbox/Vagrant/attache/mobile/attache/platforms/ios/Attaché/Attaché-Info.plist
mv: dest file already exists: /Users/greg/Dropbox/Vagrant/attache/mobile/attache/platforms/ios/Attaché/Attaché-Prefix.pch
shell.js: internal error
Error: EINVAL, invalid argument '/Users/greg/Dropbox/Vagrant/attache/mobile/attache/platforms/ios/Attaché.xcodeproj'
at Object.fs.renameSync (fs.js:543:18)
at /Users/greg/node_modules/cordova-lib/cordova-lib/node_modules/shelljs/shell.js:495:8
at Array.forEach (native)
at Object._mv (/Users/greg/node_modules/cordova-lib/cordova-lib/node_modules/shelljs/shell.js:471:11)
at Object.mv (/Users/greg/node_modules/cordova-lib/cordova-lib/node_modules/shelljs/shell.js:1491:23)
at pbxProject.<anonymous> (/Users/greg/node_modules/cordova-lib/cordova-lib/src/cordova/metadata/ios_parser.js:152:27)
at pbxProject.EventEmitter.emit (events.js:98:17)
at pbxProject.<anonymous> (/Users/greg/node_modules/cordova-lib/cordova-lib/node_modules/xcode/lib/pbxProject.js:30:18)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at handleMessage (child_process.js:322:10)
```
The changes in https://github.com/apache/cordova-lib/commit/9bb739e1cca095613ac656fc562cabe1c6f2af11 appear to output as expected:
line 45: `unorm.nfd(this.originalName)` = `Attaché`
line 50 `unorm.nfd(project)` = `/Users/greg/Dropbox/Vagrant/attache/mobile/attache/platforms/ios`
Any ideas?
> iOS platform add/prepare fails if app display name contains unicode characters.
> -------------------------------------------------------------------------------
>
> Key: CB-6992
> URL: https://issues.apache.org/jira/browse/CB-6992
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.5.0
> Environment: uname: Darwin 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
> cordova-dev -v: 3.5.0-0.2.4
> cordova-lib: 0.21.3
> Node 0.10.26
> iOS
> Reporter: Vladimir Kotikov
> Assignee: Shazron Abdullah
> Priority: Critical
> Labels: cli, configParser, ios
>
> Repro steps:
> # cordova create test-umlaÜt com.test.umlaÜt umlaÜt
> # cd test-umlaÜt/
> # cordova platform add ios
> Platform add fails with following error:
> {noformat}
> mv: dest file already exists: /Users/user/test/test-umlaÜt/platforms/ios/umlaÜt/umlaÜt-Info.plist
> mv: dest file already exists: /Users/user/test/test-umlaÜt/platforms/ios/umlaÜt/umlaÜt-Prefix.pch
> shell.js: internal error
> Error: EINVAL, invalid argument '/Users/user/test/test-umlaÜt/platforms/ios/umlaÜt.xcodeproj'
> at Object.fs.renameSync (fs.js:543:18)
> at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/shell.js:495:8
> at Array.forEach (native)
> at Object._mv (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/shell.js:471:11)
> at Object.mv (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/shell.js:1491:23)
> at pbxProject.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:145:27)
> at pbxProject.EventEmitter.emit (events.js:98:17)
> at pbxProject.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/xcode/lib/pbxProject.js:30:18)
> at ChildProcess.EventEmitter.emit (events.js:98:17)
> at handleMessage (child_process.js:318:10)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)