@@ -83,7 +83,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
8383
8484 let beforeBatchLiveSyncAction = ( filePath : string ) : IFuture < string > => {
8585 return ( ( ) => {
86- let projectFileInfo = this . getProjectFileInfo ( filePath ) ;
86+ let projectFileInfo = this . getProjectFileInfo ( filePath , platform ) ;
8787 let mappedFilePath = path . join ( projectFilesPath , path . relative ( path . join ( this . $projectData . projectDir , constants . APP_FOLDER_NAME ) , projectFileInfo . onDeviceName ) ) ;
8888
8989 // Handle files that are in App_Resources/<platform>
@@ -148,6 +148,12 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
148148 } ) ;
149149 } ;
150150
151+ let getApplicationPathForiOSSimulatorAction = ( ) : IFuture < string > => {
152+ return ( ( ) => {
153+ return this . $platformService . getLatestApplicationPackageForEmulator ( platformData ) . wait ( ) . packageName ;
154+ } ) . future < string > ( ) ( ) ;
155+ } ;
156+
151157 let liveSyncData = {
152158 platform : platform ,
153159 appIdentifier : this . $projectData . projectId ,
@@ -157,6 +163,7 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
157163 platformSpecificLiveSyncServices : platformSpecificLiveSyncServices ,
158164 notInstalledAppOnDeviceAction : notInstalledAppOnDeviceAction ,
159165 notRunningiOSSimulatorAction : notRunningiOSSimulatorAction ,
166+ getApplicationPathForiOSSimulatorAction : getApplicationPathForiOSSimulatorAction ,
160167 localProjectRootPath : localProjectRootPath ,
161168 beforeLiveSyncAction : beforeLiveSyncAction ,
162169 beforeBatchLiveSyncAction : beforeBatchLiveSyncAction ,
0 commit comments