unload dynamic library needs two dlclose() calls?
问题 I have a dynamic library which I load using dlopen() and then unload using dlclose() ; If I dont include any objective c code dlopen() needs one dlclose() call which is expected behavior. But when I include any objective c code to target, I have problem that I need to do two dlclose() calls to the loaded library in order to unload. Is this something expected behavior? How can I fix it? 回答1: I realize that you are using dlopen , not CFBundle or NSBundle . Nevertheless, the Code Loading