Skip to content

Commit f0bf52d

Browse files
authored
fix: prevent error when adding framework from build product dir (#20)
1 parent 748f180 commit f0bf52d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/pbxFile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@ function pbxFile(filepath, opt) {
128128
if (opt.explicitFileType) {
129129
this.explicitFileType = opt.explicitFileType;
130130
this.basename = this.basename + '.' + defaultExtension(this);
131-
delete this.path;
131+
// dont delete path as it is used after
132+
// delete this.path;
132133
delete this.lastKnownFileType;
133-
delete this.group;
134+
// dont delete group as it is used after
135+
// delete this.group;
134136
delete this.defaultEncoding;
135137
}
136138

@@ -155,4 +157,4 @@ function pbxFile(filepath, opt) {
155157
}
156158
}
157159

158-
module.exports = pbxFile;
160+
module.exports = pbxFile;

0 commit comments

Comments
 (0)