Skip to content

Commit f1a6737

Browse files
authoredJul 12, 2020
(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 ..."
1 parent ee2408d commit f1a6737

File tree

1 file changed

+1
-1
lines changed
  • bin/templates/scripts/cordova/lib

1 file changed

+1
-1
lines changed
 

‎bin/templates/scripts/cordova/lib/run.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports.run = runOptions => {
8686
// delete the existing platform/ios/build/device/appname.app
8787
fs.removeSync(appFile);
8888
// move the platform/ios/build/device/Payload/appname.app to parent
89-
fs.moveSync(appFileInflated, buildOutputDir);
89+
fs.moveSync(appFileInflated, appFile);
9090
// delete the platform/ios/build/device/Payload folder
9191
fs.removeSync(payloadFolder);
9292

1 commit comments

Comments
 (1)

StratusBase commented on Aug 10, 2020

@StratusBase

This solved my iOS issue with package making it to my phone. When will this make it into a release so I am not hard-coding this??

Please sign in to comment.