From d9d085a8114f87a81e981d3421204784913a6b17 Mon Sep 17 00:00:00 2001 From: farfromrefuge Date: Fri, 23 Jan 2026 16:06:20 +0100 Subject: [PATCH 1/2] fix: prevent error when adding framework from build product dir Retain the path property for later use after explicit file type assignment. --- lib/pbxFile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pbxFile.js b/lib/pbxFile.js index 1b52d259..23085a31 100644 --- a/lib/pbxFile.js +++ b/lib/pbxFile.js @@ -128,7 +128,8 @@ function pbxFile(filepath, opt) { if (opt.explicitFileType) { this.explicitFileType = opt.explicitFileType; this.basename = this.basename + '.' + defaultExtension(this); - delete this.path; + // dont delete path as it is used after + // delete this.path; delete this.lastKnownFileType; delete this.group; delete this.defaultEncoding; @@ -155,4 +156,4 @@ function pbxFile(filepath, opt) { } } -module.exports = pbxFile; \ No newline at end of file +module.exports = pbxFile; From 56fa2cf04b648d247c0ef343dcdfc74e33648fa0 Mon Sep 17 00:00:00 2001 From: farfromrefuge Date: Mon, 26 Jan 2026 14:58:21 +0100 Subject: [PATCH 2/2] chore: also keep group Comment out deletion of 'group' property to preserve it for later use. --- lib/pbxFile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pbxFile.js b/lib/pbxFile.js index 23085a31..e9770848 100644 --- a/lib/pbxFile.js +++ b/lib/pbxFile.js @@ -131,7 +131,8 @@ function pbxFile(filepath, opt) { // dont delete path as it is used after // delete this.path; delete this.lastKnownFileType; - delete this.group; + // dont delete group as it is used after + // delete this.group; delete this.defaultEncoding; }