0

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

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks duskwuff... So i created a dynamic library LibCT.dylib. Now i want to use this library in my application(cocoa). What are the steps are required to load and use that library?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.