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/b15a9fdc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/b15a9fdc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/b15a9fdc

Branch: refs/heads/6.1.x
Commit: b15a9fdcb928b2b3504fd408d30f7b72900f4d74
Parents: 9d54bd0
Author: Carlos Santana <csantan...@gmail.com>
Authored: Fri Mar 25 16:17:01 2016 -0400
Committer: Vladimir Kotikov <v-vlk...@microsoft.com>
Committed: Tue Mar 29 13:25:40 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/b15a9fdc/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-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to