cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Tuttle (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-6336) cordova platform add fails if created with --link-to
Date Mon, 24 Mar 2014 17:56:43 GMT
Adam Tuttle created CB-6336:
-------------------------------

             Summary: 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)

Mime
View raw message