Skip to content

Commit fb3e460

Browse files
author
Rob Rix
committed
Note the need to set Header Search Paths.
Fixes libgit2#348.
1 parent b03f005 commit fb3e460

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ project. An example of this is the
3535
1. Add a new "Copy Files" build phase, set the destination to "Frameworks" and
3636
add `ObjectiveGit.framework` to that. This will package the framework with
3737
your application as an embedded private framework.
38+
1. Set the “Header Search Paths” (`HEADER_SEARCH_PATHS`) build setting to the
39+
correct path for the libgit2 headers in your project. For example, if you
40+
added the submodule to your project as `External/ObjectiveGit`, you would
41+
set this build setting to `External/ObjectiveGit/External/libgit2/include`.
42+
If you see build errors saying that `git2/filter.h` cannot be found, then
43+
double-check that you set this setting correctly.
3844
1. Don't forget to `#import <ObjectiveGit/ObjectiveGit.h>` as you would with any
3945
other framework.
4046

0 commit comments

Comments
 (0)