Skip to content

Commit 09d6466

Browse files
committed
Fixes issue NativeScript#44, where removeFromPbxFileReferenceSection fails to remove its given file from PBXFileReference.
1 parent 19879f9 commit 09d6466

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/pbxProject.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ pbxProject.prototype.removeFromPbxFileReferenceSection = function (file) {
277277
var refObj = pbxFileReferenceObj(file);
278278
for(i in this.pbxFileReferenceSection()) {
279279
if(this.pbxFileReferenceSection()[i].name == refObj.name ||
280-
this.pbxFileReferenceSection()[i].path == refObj.path) {
280+
('"' + this.pbxFileReferenceSection()[i].name + '"') == refObj.name ||
281+
this.pbxFileReferenceSection()[i].path == refObj.path ||
282+
('"' + this.pbxFileReferenceSection()[i].path + '"') == refObj.path) {
281283
file.fileRef = file.uuid = i;
282284
delete this.pbxFileReferenceSection()[i];
283285
break;

0 commit comments

Comments
 (0)