dlopen() error image not found

后端 未结 2 1569
萌比男神i
萌比男神i 2021-01-18 04:29

I have software that first loads a .dylib lets call libFirst.dylib using the following command:

void* handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_GLOBAL);         


        
2条回答
  •  我在风中等你
    2021-01-18 04:58

    use:

    install_name_tool -id @executable_path/../Frameworks/mylib.dylib mylib.dylib
    

    then check it with:

    otool -D mylib.dylib
    

提交回复
热议问题