Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit be9d9c3

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix run, livesync, run workflow
Fixes NativeScript/nativescript-cli#896
1 parent 09f4889 commit be9d9c3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mobile/ios/ios-device.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,11 @@ export class IOSDevice implements Mobile.IiOSDevice {
290290
return this.tryExecuteFunction<number>(func);
291291
}
292292

293-
public deploy(packageFile: string): IFuture<void> {
294-
return this.applicationManager.installApplication(packageFile);
293+
public deploy(packageFile: string, packageName: string): IFuture<void> {
294+
return (() => {
295+
this.applicationManager.uninstallApplication(packageName).wait();
296+
this.applicationManager.installApplication(packageFile).wait();
297+
}).future<void>()();
295298
}
296299

297300
public openDeviceLogStream() {

0 commit comments

Comments
 (0)