Skip to content

Commit 1a410c1

Browse files
e2l3nKristian D. Dimitrov
authored andcommitted
Implement relative to project root search paths.
1 parent 053d70c commit 1a410c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/pbxProject.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,6 +1650,10 @@ function correctForPath(file, project, group) {
16501650
}
16511651

16521652
function searchPathForFile(file, proj) {
1653+
if (file.relativePath) {
1654+
return '"\$(SRCROOT)/' + file.relativePath + '\"';
1655+
}
1656+
16531657
var plugins = proj.pbxGroupByName('Plugins'),
16541658
pluginsPath = plugins ? plugins.path : null,
16551659
fileDir = path.dirname(file.path);

0 commit comments

Comments
 (0)