The library is essentially an executable binary format in the city, which can be loaded into memory to perform a static library in IOS with the. A and. Framework two forms; The dynamic library has the. Dylib and. Framework two, later. Dylib was replaced by Apple. TBD Form Static Library and dynamic library The difference between static and dynamic libraries is relative to the compilation period and the runtime, the static library will be connected to the code during the compilation period, the program run time will no longer need to change the static library, and Dynamic libraries are not connected to the code during compilation, and are loaded only during the run of the program, so the existence of a dynamic library is also required during program run time. Summing up the same static library in different programs to use, each program needs to be imported once, packaging is also packaged into a program, and the dynamic library in different programs, packaging is not packaged in, only when the program is running when you are connected to the load, such as the system framework (UIKit, Foundation, etc.) so the volume will be much smaller, but Apple does not allow the use of its own dynamic library, otherwise the audit will not pass
IOS static libraries and dynamic libraries