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

Commit 64afc3f

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix application glitches on iOS simulator after livesync
Fix livesync to work with iOS 7.x Fixes NativeScript/nativescript-cli#761 and NativeScript/nativescript-cli#762
1 parent 137970b commit 64afc3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mobile/ios/ios-emulator-services.ts

+4-1
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)