PDA

View Full Version : Custom static library which uses a .dylib file




willemVP
Aug 5, 2011, 12:57 AM
I'm working on a project where I need to create a static library (.a) that uses libiconv.dylib. Since iOS doesn't support dynamic libraries, I need to find a way to use the dynamic library in a static way.
How can I build the library with this dynamic library?

Edit: I also tried to add the dylib under the 'Copy Files' section as a Build Phase. When I try this I get the following warning:
warning: skipping copy phase strip, binary is code signed: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/libiconv.2.dylib