This repository was archived by the owner on Feb 2, 2021. It is now read-only.
File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,9 @@ class IosEmulatorServices implements Mobile.IiOSSimulatorService {
173
173
private getApplicationPath ( appIdentifier : string , runningSimulatorId : string ) : IFuture < string > {
174
174
return ( ( ) => {
175
175
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
+ }
176
179
let applicationGuids = this . $fs . readDirectory ( rootApplicationsPath ) . wait ( ) ;
177
180
let result : string = null ;
178
181
_ . each ( applicationGuids , applicationGuid => {
@@ -202,7 +205,7 @@ class IosEmulatorServices implements Mobile.IiOSSimulatorService {
202
205
syncAction ( applicationPath ) ;
203
206
204
207
try {
205
- this . $childProcess . exec ( "killall -KILL launchd_sim" ) . wait ( ) ;
208
+ this . $childProcess . exec ( "killall launchd_sim" ) . wait ( ) ;
206
209
this . $childProcess . exec ( `xcrun simctl launch ${ runningSimulatorId } ${ appIdentifier } ` ) . wait ( ) ;
207
210
} catch ( e ) {
208
211
this . $logger . trace ( "Unable to kill simulator: " + e ) ;
You can’t perform that action at this time.
0 commit comments