You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2020/07/12 18:06:21 UTC

[cordova-ios] branch master updated: (ios) issue-912: fix deployment to device (#936)

This is an automated email from the ASF dual-hosted git repository.

timbru31 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/master by this push:
     new f1a6737  (ios) issue-912: fix deployment to device (#936)
f1a6737 is described below

commit f1a6737632a8fed24e157cfb3424b0c3040a68ed
Author: imgos <os...@maden.com>
AuthorDate: Sun Jul 12 14:06:07 2020 -0400

    (ios) issue-912: fix deployment to device (#936)
    
    cordova-ios used to use "mv -f" and it was replaced with fs-extra.moveSync.  moveSync behaves
    differently than mv, which broke deployment to devices.  This fixes the folder move and
    subsequently deployment to device (when using "cordova run ios --device ..."
---
 bin/templates/scripts/cordova/lib/run.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/templates/scripts/cordova/lib/run.js b/bin/templates/scripts/cordova/lib/run.js
index bfee64f..f7fd8c1 100644
--- a/bin/templates/scripts/cordova/lib/run.js
+++ b/bin/templates/scripts/cordova/lib/run.js
@@ -86,7 +86,7 @@ module.exports.run = runOptions => {
                         // delete the existing platform/ios/build/device/appname.app
                         fs.removeSync(appFile);
                         // move the platform/ios/build/device/Payload/appname.app to parent
-                        fs.moveSync(appFileInflated, buildOutputDir);
+                        fs.moveSync(appFileInflated, appFile);
                         // delete the platform/ios/build/device/Payload folder
                         fs.removeSync(payloadFolder);
 


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