objective-git icon indicating copy to clipboard operation
objective-git copied to clipboard

<git2.h> not found

Open bellingboe opened this issue 14 years ago • 3 comments

I've followed the instructions just fine I thought, but I'm getting the error <git2.h> not found in ObjectiveGit/ObjectiveGit.h

in my delegate implementation file, I have the following:

#import <ObjectiveGit/ObjectiveGit.h>

but under "Other Sources", in ObjectiveGit, the "ObjectiveGit.h" file seems to be next to "git2.h", as follows...

git2

bellingboe avatar Apr 11 '12 05:04 bellingboe

libgit2 is a submodule. Did you do the git submodule update --recursive --init dance?

joshaber avatar Apr 11 '12 16:04 joshaber

I had exactly the same problem (I did init and update the submodules) and it was fixed by #import "git2.h" rather than <git2.h>. Guess the project settings screw with the search paths...

pkluz avatar Apr 18 '12 18:04 pkluz

I add the exact same issue and replacing < by " worked, so thank you for that. Do you know where this issue come from? Should somebody open a pull request and "fix" this properly?

Palleas avatar Jul 20 '12 20:07 Palleas