Skip to content

Commit 0a7543c

Browse files
committed
modified PBXFileReference removal to handle xcodes stupidity
1 parent aa3bd6b commit 0a7543c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbxProject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ pbxProject.prototype.removeFromPbxFileReferenceSection = function (file) {
216216
var i;
217217
var refObj = pbxFileReferenceObj(file);
218218
for(i in this.pbxFileReferenceSection()) {
219-
if(this.pbxFileReferenceSection()[i].name == refObj.name &&
219+
if(this.pbxFileReferenceSection()[i].name == refObj.name ||
220220
this.pbxFileReferenceSection()[i].path == refObj.path) {
221221
file.fileRef = file.uuid = i;
222222
delete this.pbxFileReferenceSection()[i];

0 commit comments

Comments
 (0)