Skip to content

Commit 71c0229

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
PR comments
1 parent 2ad0926 commit 71c0229

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/services/ios-project-service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ class IOSProjectService implements IPlatformProjectService {
216216
// Copy old file to options["profile-dir"]
217217
var sourceFile = path.join(this.platformData.projectRoot, util.format("%s.xcodeproj", this.$projectData.projectName));
218218
var destinationFile = path.join(options.profileDir, "xcodeproj");
219-
//this.$fs.copyFile(sourceFile, destinationFile).wait();
219+
this.$fs.deleteDirectory(destinationFile).wait();
220+
shell.cp("-R", path.join(sourceFile, "*"), destinationFile);
220221
this.$logger.info("Backup file %s at location %s", sourceFile, destinationFile);
221222
this.$fs.deleteDirectory(path.join(this.platformData.projectRoot, util.format("%s.xcodeproj", this.$projectData.projectName))).wait();
222223

lib/services/platform-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export class PlatformService implements IPlatformService {
460460
this.updatePlatformCore(platformData, currentVersion, newVersion).wait();
461461
}
462462
} else {
463-
var isUpdateConfirmed = this.$prompter.confirm(util.format("We need to override xcodeproj file. The old one will be saved at %s Are you sure?", options.profileDir), () => "y").wait();
463+
var isUpdateConfirmed = this.$prompter.confirm(util.format("We need to override xcodeproj file. The old one will be saved at %s. Are you sure?", options.profileDir), () => "y").wait();
464464
if(isUpdateConfirmed) {
465465
platformData.platformProjectService.updatePlatform(currentVersion, newVersion).wait();
466466
this.updatePlatformCore(platformData, currentVersion, newVersion).wait();

0 commit comments

Comments
 (0)