Skip to content

Commit 93cb011

Browse files
committed
feat: add support for header search path deletion by string
1 parent a56960f commit 93cb011

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

lib/pbxFile.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ var $path = require('path'),
1717

1818
function fileTypes() {
1919
return {
20-
SOURCE_FILE,
21-
C_SOURCE_FILE,
22-
HEADER_FILE,
23-
MM_SOURCE_FILE,
24-
CPP_HEADER_FILE,
25-
CPP_SOURCE_FILE,
20+
SOURCE_FILE,
21+
C_SOURCE_FILE,
22+
HEADER_FILE,
23+
MM_SOURCE_FILE,
24+
CPP_HEADER_FILE,
25+
CPP_SOURCE_FILE,
2626
BUNDLE,
2727
XIB_FILE,
2828
FRAMEWORK,

lib/pbxProject.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,11 @@ pbxProject.prototype.addPbxGroup = function (filePathsArray, name, path, sourceT
386386
}
387387

388388
pbxProject.prototype.removePbxGroup = function(name, path) {
389-
var group = this.pbxGroupByName(name);
390-
if (!group) {
391-
return;
392-
}
393-
389+
var group = this.pbxGroupByName(name);
390+
if (!group) {
391+
return;
392+
}
393+
394394
var children = group.children;
395395

396396
for(i in children) {
@@ -933,7 +933,7 @@ pbxProject.prototype.removeFromHeaderSearchPaths = function (file) {
933933
INHERITED = '"$(inherited)"',
934934
SEARCH_PATHS = 'HEADER_SEARCH_PATHS',
935935
config, buildSettings, searchPaths;
936-
var new_path = searchPathForFile(file, this);
936+
var new_path = typeof file === 'string' ? file : searchPathForFile(file, this);
937937

938938
for (config in configurations) {
939939
buildSettings = configurations[config].buildSettings;

0 commit comments

Comments
 (0)