Dynamic library CAN NOT call a category method in other static library

Hi!

I have two framework libraries, framework A is Dynamic library, and framework B is Static library, framework A depends on framework B.

If A links B in Xcode, then A will include B's code after compiled, when a project links both A and B, NSClassFromString may load wrong class.

If A DO NOT link B, then A CAN NOT call category method in B.

So guys, is there any way to solve these two problems at the same time?
Dynamic library CAN NOT call a category method in other static library
 
 
Q