[
https://issues.apache.org/jira/browse/CB-6336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13970717#comment-13970717
]
David Kemp commented on CB-6336:
--------------------------------
Most likely the same issue. the error track is approximately the same.
More specifically I had a parent folder X which contained a www folder that was
for safekeeping (X/www)
I tried to create a new project at Y (X/Y) and it fails. If you rename www to
www1 (X/www1) then the project creates just fine.
Its just a bit opaque since the www in question is clearly above the specified
project root.
> cordova platform add fails if created with --link-to
> ----------------------------------------------------
>
> Key: CB-6336
> URL: https://issues.apache.org/jira/browse/CB-6336
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.4.0
> Environment: OSX 10.9.2
> Reporter: Adam Tuttle
> Priority: Minor
>
> Given a "www" folder with app contents, run the following commands in this
> sequence:
> {code}
> cordova create build_local com.foo.bar appName --link-to ./www
> cd build_local
> cordova platform add ios
> {code}
> This results in the following error being thrown:
> {code}
> Creating ios project...
> Error: /Users/adam/DEV/myApp/platforms does not exist. Please specify an
> existing parent folder.
> Error: /Users/adam/.cordova/lib/ios/cordova/3.4.0/bin/create: Command failed
> with exit code 1
> at ChildProcess.whenDone
> (/usr/local/lib/node_modules/cordova/src/superspawn.js:112:23)
> at ChildProcess.EventEmitter.emit (events.js:98:17)
> at maybeClose (child_process.js:743:16)
> at Process.ChildProcess._handle.onexit (child_process.js:810:5)
> {code}
> The platforms folder exists at /users/adam/DEV/myApp/build_local/platforms
> but the tool is going one too many directories back up the hierarchy.
> I've found that if I create the app without the --link-to flag, add the
> desired platforms, and then delete the created www folder and add a symlink
> manually it _seems_ to run fine, but I'm not positive that's all that should
> be needed.
--
This message was sent by Atlassian JIRA
(v6.2#6252)