Skip to content

Commit 976eca8

Browse files
committed
Implement relative to project root search paths.
1 parent be008f2 commit 976eca8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/pbxProject.js

+4
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,10 @@ function correctForPath(file, project, group) {
10421042
}
10431043

10441044
function searchPathForFile(file, proj) {
1045+
if (file.relativePath) {
1046+
return '"\$(SRCROOT)/' + file.relativePath + '\"';
1047+
}
1048+
10451049
var plugins = proj.pbxGroupByName('Plugins'),
10461050
pluginsPath = plugins ? plugins.path : null,
10471051
fileDir = path.dirname(file.path);

0 commit comments

Comments
 (0)