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

Commit 2287fd9

Browse files
authored
Merge pull request #1005 from telerik/tnikolov/ios-simulator-log
Always set application pid.
2 parents 604a1dd + e232906 commit 2287fd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mobile/ios/simulator/ios-simulator-application-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export class IOSSimulatorApplicationManager extends ApplicationManagerBase {
4141

4242
public async startApplication(appIdentifier: string): Promise<void> {
4343
let launchResult = this.iosSim.startApplication(this.identifier, appIdentifier);
44+
let pid = launchResult.split(":")[1].trim();
45+
this.$deviceLogProvider.setApplicationPidForDevice(this.identifier, pid);
4446

4547
if (!this.$options.justlaunch) {
46-
let pid = launchResult.split(":")[1].trim();
47-
this.$deviceLogProvider.setApplicationPidForDevice(this.identifier, pid);
4848
this.$iOSSimulatorLogProvider.startLogProcess(this.identifier);
4949
}
5050
}

0 commit comments

Comments
 (0)