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

Commit 1d04d7e

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #423 from telerik/fatme/fix-ios-sim-glitches
Fix application glitches on iOS simulator after livesync
2 parents 137970b + 64afc3f commit 1d04d7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mobile/ios/ios-emulator-services.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ class IosEmulatorServices implements Mobile.IiOSSimulatorService {
173173
private getApplicationPath(appIdentifier: string, runningSimulatorId: string): IFuture<string> {
174174
return (() => {
175175
let rootApplicationsPath = path.join(osenv.home(), `/Library/Developer/CoreSimulator/Devices/${runningSimulatorId}/data/Containers/Bundle/Application`);
176+
if(!this.$fs.exists(rootApplicationsPath).wait()) {
177+
rootApplicationsPath = path.join(osenv.home(), `/Library/Developer/CoreSimulator/Devices/${runningSimulatorId}/data/Applications`);
178+
}
176179
let applicationGuids = this.$fs.readDirectory(rootApplicationsPath).wait();
177180
let result: string = null;
178181
_.each(applicationGuids, applicationGuid => {
@@ -202,7 +205,7 @@ class IosEmulatorServices implements Mobile.IiOSSimulatorService {
202205
syncAction(applicationPath);
203206

204207
try {
205-
this.$childProcess.exec("killall -KILL launchd_sim").wait();
208+
this.$childProcess.exec("killall launchd_sim").wait();
206209
this.$childProcess.exec(`xcrun simctl launch ${runningSimulatorId} ${appIdentifier}`).wait();
207210
} catch(e) {
208211
this.$logger.trace("Unable to kill simulator: " + e);

0 commit comments

Comments
 (0)