Skip to content

Commit

Permalink
(ios) issue-912: fix deployment to device (#936)
Browse files Browse the repository at this point in the history
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 ..."
  • Loading branch information
imgos authored and dpogue committed Aug 28, 2020
1 parent c75ff4a commit efe6f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templates/scripts/cordova/lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit efe6f1f

Please sign in to comment.