Skip to content

fix: don't remove groups by name as multiple can coexist #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: don't remove groups by name as multiple can coexist
  • Loading branch information
rigor789 committed Apr 29, 2022
commit 01c170156e05a8ade5a3bf6c20b41d75be8984d2
5 changes: 0 additions & 5 deletions lib/pbxProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,11 +542,6 @@ pbxProject.prototype.findMainPbxGroup = function () {
pbxProject.prototype.addPbxGroup = function (filePathsArray, name, path, sourceTree, opt) {
opt = opt || {};
var srcRootPath = $path.dirname($path.dirname(this.filepath));
var oldGroup = this.pbxGroupByName(name);
if (oldGroup) {
this.removePbxGroup(name, path);
}

var groups = this.hash.project.objects['PBXGroup'],
pbxGroupUuid = opt.uuid || this.generateUuid(),
commentKey = f("%s_comment", pbxGroupUuid),
Expand Down