Domanda

How to load .a file in objective-c programmatically. And how to get type of the class?

È stato utile?

Soluzione

Static libraries (.a) cannot be loaded at runtime. They can only be used as input to the linker (that is, at compile time).

If you want to load a library at runtime, you will need to use a dynamic library (.dylib, or a plugin bundle). Refer to Apple's Introduction to Dynamically Loading Code for details, or ask another question if you have a specific issue.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top