From 538b0c9b579778390ab18149c0d43a6dcb04f09b Mon Sep 17 00:00:00 2001 From: Bryan Ellis Date: Mon, 9 Nov 2026 16:30:53 +0900 Subject: [PATCH] fix(removeFromPbxSourcesBuildPhase): Remove based on UUID and filename --- lib/pbxProject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }