Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
_git_path_iconv in libgit2.a(path.c.o)
"_libiconv_close", referenced from:
_git_path_iconv_clear in libgit2.a(path.c.o)
"_libiconv_open", referenced from:
_git_path_iconv_init_precompose in libgit2.a(path.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The project links to libiconv by including it in the project (at usr/lib/libiconv.dylib relative to SDK, and building with the 10.9 SDK), and including that in the link build phase. Using a -liconv linker flag instead yields the same result. I've ensured I have a clean build, and even reinstalled Xcode in case the library was corrupted. A simple test project that links to libiconv built with no problems, and I can't see any significant differences between it and the Objective Git project.
What else could be causing this error?