You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2016/03/29 12:01:56 UTC

cordova-lib git commit: CB-10961 Error no such file or directory adding ios platform when plugins present or required

Repository: cordova-lib
Updated Branches:
  refs/heads/master bdb45fa05 -> 183495d4a


CB-10961 Error no such file or directory adding ios platform when plugins present or required

This closes #416


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/183495d4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/183495d4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/183495d4

Branch: refs/heads/master
Commit: 183495d4a8a195ac55a70419186e3093a5750d4f
Parents: bdb45fa
Author: Carlos Santana <cs...@gmail.com>
Authored: Fri Mar 25 16:17:01 2016 -0400
Committer: Vladimir Kotikov <v-...@microsoft.com>
Committed: Tue Mar 29 12:51:31 2016 +0300

----------------------------------------------------------------------
 cordova-lib/src/cordova/platform.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/183495d4/cordova-lib/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/platform.js b/cordova-lib/src/cordova/platform.js
index 2ea8c01..db6f53c 100644
--- a/cordova-lib/src/cordova/platform.js
+++ b/cordova-lib/src/cordova/platform.js
@@ -19,6 +19,7 @@
 
 var config            = require('./config'),
     cordova           = require('./cordova'),
+    prepare           = require('./prepare'),
     cordova_util      = require('./util'),
     ConfigParser      = require('cordova-common').ConfigParser,
     fs                = require('fs'),
@@ -181,6 +182,9 @@ function addHelper(cmd, hooksRunner, projectRoot, targets, opts) {
                     PlatformApi.updatePlatform.bind(null, destination, options, events);
 
                 return promise()
+                .then(function () {
+                    return prepare.preparePlatforms([platform], projectRoot, { searchpath: opts.searchpath });
+                })
                 .then(function() {
                     if (cmd == 'add') {
                         return installPluginsForNewPlatform(platform, projectRoot, opts);


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