Skip to content

Commit 9f4ca08

Browse files
authored
fix: don't remove groups by name as multiple can coexist (#15)
1 parent a7f0327 commit 9f4ca08

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/pbxProject.js

-5
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,6 @@ pbxProject.prototype.findMainPbxGroup = function () {
542542
pbxProject.prototype.addPbxGroup = function (filePathsArray, name, path, sourceTree, opt) {
543543
opt = opt || {};
544544
var srcRootPath = $path.dirname($path.dirname(this.filepath));
545-
var oldGroup = this.pbxGroupByName(name);
546-
if (oldGroup) {
547-
this.removePbxGroup(name, path);
548-
}
549-
550545
var groups = this.hash.project.objects['PBXGroup'],
551546
pbxGroupUuid = opt.uuid || this.generateUuid(),
552547
commentKey = f("%s_comment", pbxGroupUuid),

0 commit comments

Comments
 (0)