creating a .dll on a mac: .dylib or framework?

送分小仙女□ 提交于 2019-11-30 05:07:32

.dylib is similar to .so on Linux.

Frameworks are basically just the OSX way of distributing libraries and headers together. They are the Application Bundle equivalent for library distribution.

With either method if you want to ensure other people don't use them you should be using static libraries (.a files) and getting your customer to statically link them into their application.

Otherwise there isn't really much difference between Frameworks and .dylib except the prior is nicer for OSX developers.

Either can be embedded inside a customers Application bundle, otool/install_name_tool handle them both fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!