.a stands for static library
.dylib stands for dynamic library
Static Library (.a)
A static library (.a) is a package of compiled classes that can be used with an iOS application development project. This is a compiled binary or thick file and can be shared between projects.
You might want to create a static library for various reasons.
For instance:
You want to link several classes that you and / or your colleagues in your team regularly use, and it's easy to share.
You want to be able to centrally centralize common code so you can easily add corrections or updates.
You like to share the library with several people, but not let them see your code. -
Dynamic library
A file ending in the .dylib extension is a dynamic library: it is a library loaded at runtime, not at compile time. If you are familiar with DLLs from Windows or DSOs, this is more or less the same type of thing with a few twists.
dylib are similar to the windows * .dll file. They contain common non-modifiable code intended for reuse by many applications.
source share