Skip to content

Commit 1aa80f3

Browse files
FatmeFatme
authored andcommitted
Merge pull request #47 from telerik/fatme/fix-livesync
Doesn't throw error when the application is not installed on the iOS simulator
2 parents 2173df3 + 1eb493d commit 1aa80f3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/simctl.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ export class Simctl implements ISimctl {
3737
}
3838

3939
public getAppContainer(deviceId: string, applicationIdentifier: string): IFuture<string> {
40-
return this.simctlExec("get_app_container", [deviceId, applicationIdentifier]);
40+
return (() => {
41+
try {
42+
return this.simctlExec("get_app_container", [deviceId, applicationIdentifier]).wait();
43+
} catch(e) {
44+
if (e.message.indexOf("No such file or directory") > -1) {
45+
return null;
46+
}
47+
throw e;
48+
}
49+
}).future<string>()();
4150
}
4251

4352
public getDevices(): IFuture<IDevice[]> {

0 commit comments

Comments
 (0)