I'm trying to use libxar
inside my xcode4
project and get the famous "undefined symbols for architecture" error, no matter what arch I choose for building, e.g.:
Undefined symbols for architecture x86_64:
"xar_open(char const*, int)", referenced from:
_main in main.o
I did what I always did to include the dylib:
- set "library search path" to the path where libxar.dylib is placed
- set "header path" to the path where xar.h is placed (which contains xar_open)
- added libxar.dylib to build phases - link binary with libraries
Did I miss something?