Dynamic Library Usage Guidelines - Apple Developer
developer.apple.com › library › archiveJul 23, 2012 · Therefore, you must balance every call to dlopen with a call to dlclose. When the reference count for a library handle reaches 0, the dynamic loader may remove the library from the address space of the app. The Library Search Process. The first parameter to dlopen(3) OS X Developer Tools Manual Page is the name of the dynamic library to open ...