We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d2ea13 + e2c885f commit ad96ef0Copy full SHA for ad96ef0
bin/templates/scripts/cordova/lib/prepare.js
@@ -503,7 +503,11 @@ function updateFileResources (cordovaProject, locations) {
503
let targetPath = path.join(project.resources_dir, target);
504
targetPath = path.relative(cordovaProject.root, targetPath);
505
506
- project.xcode.addResourceFile(target);
+ if (!fs.existsSync(targetPath)) {
507
+ project.xcode.addResourceFile(target);
508
+ } else {
509
+ events.emit('warn', 'Overwriting existing resource file at ' + targetPath);
510
+ }
511
512
resourceMap[targetPath] = src;
513
});
0 commit comments