diff --git a/lib/services/livesync/ios-livesync-service.ts b/lib/services/livesync/ios-livesync-service.ts index fddd52e561..92162beeb2 100644 --- a/lib/services/livesync/ios-livesync-service.ts +++ b/lib/services/livesync/ios-livesync-service.ts @@ -32,7 +32,9 @@ export class IOSLiveSyncService extends PlatformLiveSyncServiceBase implements I const tempZip = temp.path({ prefix: "sync", suffix: ".zip" }); this.$logger.trace("Creating zip file: " + tempZip); - await this.$fs.zipFiles(tempZip, this.$fs.enumerateFilesInDirectorySync(projectFilesPath), (res) => { + const filesToTransfer = this.$fs.enumerateFilesInDirectorySync(projectFilesPath); + + await this.$fs.zipFiles(tempZip, filesToTransfer, (res) => { return path.join(APP_FOLDER_NAME, path.relative(projectFilesPath, res)); }); @@ -43,6 +45,8 @@ export class IOSLiveSyncService extends PlatformLiveSyncServiceBase implements I deviceProjectRootPath: await deviceAppData.getDeviceProjectRootPath() }]); + await deviceAppData.device.applicationManager.setTransferredAppFiles(filesToTransfer); + return { deviceAppData, isFullSync: true,