سؤال

I am trying to build a static library which is using a third party framework. It is built successfully.

But, the problem is, when i am including my static library into any sample application, the sample application is also asking for that third party library which is used under my static library.

Why the Sample application is asking for that framework, if it is already used inside by static library?

هل كانت مفيدة؟

المحلول 2

if you have not used the "code" of lib(third party) during compilation and have used only .h files and .a file, then your library is dependent for executable code on the other static lib and hence it will be required.

the only way to remove the dependency is to compile the source of dependent(third party) static lib with your static lib code so the lib is generated having executable code of the dependent lib.

نصائح أخرى

I dont know if this will some one.... but goto BuildSettings -> Architectuers -> Under BuildActiveArchitecture Only , there set NO and then generate library.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top