Skip to content

Commit 293025e

Browse files
authored
fix: allow symlink folders in addPbxGroup (#16)
1 parent e37a17a commit 293025e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbxProject.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ pbxProject.prototype.addPbxGroup = function (filePathsArray, name, path, sourceT
588588
if(opt.target) {
589589
file.target = opt.target;
590590
}
591-
if (fs.existsSync(filePath) && fs.lstatSync(filePath).isDirectory() && !isAssetFileType(file.lastKnownFileType)) {
591+
if (fs.existsSync(filePath) && (fs.lstatSync(filePath).isDirectory() || fs.lstatSync(filePath).isSymbolicLink()) && !isAssetFileType(file.lastKnownFileType)) {
592592
if($path.extname(filePath) === ".lproj") {
593593
continue;
594594
}

0 commit comments

Comments
 (0)