How do I use a custom dylib in a library project in xcode 4?

I am writing a shared library (dylib) in c using xcode 4.2, say X.dylib. In this project I need to use another very specific dylib, say Y.dylib. I want to save it in a project and send it together.

Currently compiling X.dylib fails if I have not installed Y.dylib in / usr / local / lib. But I want to have it in my local package / project.

How do I configure xcode in this case?

+3


source to share


1 answer


In Xcode 4.6, you just need to drag the framework into your Xcode project and check Copy items into destinations groups folder

and validate all targets you want to add the library to.



0


source







All Articles