diff --git a/lib/services/platform-service.ts b/lib/services/platform-service.ts index 302d0f9042..e47e4d224b 100644 --- a/lib/services/platform-service.ts +++ b/lib/services/platform-service.ts @@ -326,6 +326,8 @@ export class PlatformService implements IPlatformService { public cleanDestinationApp(platform: string): IFuture { return (() => { + this.ensurePlatformInstalled(platform).wait(); + const appSourceDirectoryPath = path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME); let platformData = this.$platformsData.getPlatformData(platform); let appDestinationDirectoryPath = path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME);