Skip to content

Commit 9738ab3

Browse files
committed
pbxFileReferenceObj: Made path property optional.
1 parent 5b1ad25 commit 9738ab3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/pbxProject.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,10 @@ function pbxFileReferenceObj(file) {
10531053
obj.lastKnownFileType = file.lastType;
10541054

10551055
obj.name = "\"" + file.basename + "\"";
1056+
1057+
if (file.path) {
10561058
obj.path = "\"" + file.path.replace(/\\/g, '/') + "\"";
1059+
}
10571060

10581061
obj.sourceTree = file.sourceTree;
10591062

0 commit comments

Comments
 (0)