Skip to content

Commit 176df7f

Browse files
tdermendjievKristian D. Dimitrov
authored andcommitted
feat: add support for header search path deletion by string
1 parent 73bb809 commit 176df7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/pbxProject.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,10 @@ pbxProject.prototype.addPbxGroup = function (filePathsArray, name, path, sourceT
591591
}
592592

593593
pbxProject.prototype.removePbxGroup = function(groupName, path) {
594-
var group = this.pbxGroupByName(groupName);
595-
if (!group) {
596-
return;
597-
}
594+
var group = this.pbxGroupByName(groupName);
595+
if (!group) {
596+
return;
597+
}
598598

599599
var children = group.children;
600600

@@ -1310,7 +1310,7 @@ pbxProject.prototype.removeFromHeaderSearchPaths = function(file) {
13101310
INHERITED = '"$(inherited)"',
13111311
SEARCH_PATHS = 'HEADER_SEARCH_PATHS',
13121312
config, buildSettings, searchPaths;
1313-
var new_path = searchPathForFile(file, this);
1313+
var new_path = typeof file === 'string' ? file : searchPathForFile(file, this);
13141314

13151315
for (config in configurations) {
13161316
buildSettings = configurations[config].buildSettings;

0 commit comments

Comments
 (0)