diff --git a/lib/pbxProject.js b/lib/pbxProject.js index 07fc062..ba40524 100644 --- a/lib/pbxProject.js +++ b/lib/pbxProject.js @@ -790,7 +790,7 @@ PBXProject.prototype.addToPbxSourcesBuildPhase = function (file) { PBXProject.prototype.removeFromPbxSourcesBuildPhase = function (file) { const sources = this.pbxSourcesBuildPhaseObj(file.target); for (const i in sources.files) { - if (sources.files[i].comment === longComment(file)) { + if (sources.files[i].value === file.uuid && sources.files[i].comment.startsWith(file.basename)) { sources.files.splice(i, 1); break; }