Skip to content

Commit 1fd40aa

Browse files
initialxye2l3n
authored andcommitted
Fixes issue alunny#44, where removeFromPbxFileReferenceSection fails to remove its given file from PBXFileReference.
1 parent e6e9863 commit 1fd40aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/pbxProject.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ pbxProject.prototype.removeFromPbxFileReferenceSection = function (file) {
289289
var refObj = pbxFileReferenceObj(file);
290290
for(i in this.pbxFileReferenceSection()) {
291291
if(this.pbxFileReferenceSection()[i].name == refObj.name ||
292-
this.pbxFileReferenceSection()[i].path == refObj.path) {
292+
('"' + this.pbxFileReferenceSection()[i].name + '"') == refObj.name ||
293+
this.pbxFileReferenceSection()[i].path == refObj.path ||
294+
('"' + this.pbxFileReferenceSection()[i].path + '"') == refObj.path) {
293295
file.fileRef = file.uuid = i;
294296
delete this.pbxFileReferenceSection()[i];
295297
break;

0 commit comments

Comments
 (0)