Cannot create dynamic library for PJSIP Cannot create dynamic library for PJSIP ios ios

Cannot create dynamic library for PJSIP


Shared libraries are loaded at runtime. Thus you must provide the library with your application, and load it with dlopen(3) by yourself, because you cannot install it into the system library paths. You must also codesign your library.

But this doesn't make sense:

  1. Shared libraries make sense, when you load them from multiple applications. On iOS this can only be your application and its extensions. You should use a dynamic framework instead.
  2. Apple will probably reject your binary, if they detect the shared library, and they will point to shared frameworks.

Including the libs into a shared framework should be easy. Just add the static libraries to Linked Frameworks and Libraries from the shared framework. Ensure that the static libs are compiled to position independent code, which should be the default.