link to dylib in xcode 4

679 Views Asked by At

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?

0

There are 0 best solutions below