@@ -83,7 +83,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
83
83
84
84
let beforeBatchLiveSyncAction = ( filePath : string ) : IFuture < string > => {
85
85
return ( ( ) => {
86
- let projectFileInfo = this . getProjectFileInfo ( filePath ) ;
86
+ let projectFileInfo = this . getProjectFileInfo ( filePath , platform ) ;
87
87
let mappedFilePath = path . join ( projectFilesPath , path . relative ( path . join ( this . $projectData . projectDir , constants . APP_FOLDER_NAME ) , projectFileInfo . onDeviceName ) ) ;
88
88
89
89
// Handle files that are in App_Resources/<platform>
@@ -148,6 +148,12 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
148
148
} ) ;
149
149
} ;
150
150
151
+ let getApplicationPathForiOSSimulatorAction = ( ) : IFuture < string > => {
152
+ return ( ( ) => {
153
+ return this . $platformService . getLatestApplicationPackageForEmulator ( platformData ) . wait ( ) . packageName ;
154
+ } ) . future < string > ( ) ( ) ;
155
+ } ;
156
+
151
157
let liveSyncData = {
152
158
platform : platform ,
153
159
appIdentifier : this . $projectData . projectId ,
@@ -157,6 +163,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
157
163
platformSpecificLiveSyncServices : platformSpecificLiveSyncServices ,
158
164
notInstalledAppOnDeviceAction : notInstalledAppOnDeviceAction ,
159
165
notRunningiOSSimulatorAction : notRunningiOSSimulatorAction ,
166
+ getApplicationPathForiOSSimulatorAction : getApplicationPathForiOSSimulatorAction ,
160
167
localProjectRootPath : localProjectRootPath ,
161
168
beforeLiveSyncAction : beforeLiveSyncAction ,
162
169
beforeBatchLiveSyncAction : beforeBatchLiveSyncAction ,
0 commit comments