.dll 等效于 Mac OS X

编程入门 行业动态 更新时间:2024-10-20 08:33:06
本文介绍了.dll 等效于 Mac OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我来自 Windows 背景,我习惯于通过创建 (.dll) 然后分发所有库和文档来创建 SDK.

I am from a Windows background and I am used to creating SDKs by creating (.dll)s and then distributing all the libraries and Documentation.

所以,如果用户想要使用它,他会添加对库的引用并使用它.但是,在 Mac 中,我正在开发 SDK,我想要一种创建和分发 Mac 库的方法.

So, if a user wants to use it, he adds a reference to the library and uses it. However, in a Mac, I am working on a SDK and I want a way of creating and distributing Mac libraries.

(我想在 Objective-C 中创建库)请帮助我:)

(I want to create the library in Objective-C) Please help me :)

推荐答案

如果您要创建 Mac 库,您可以选择 创建dylib,其中仅包含库的已编译二进制文件,或 创建框架,其中包括编译后的二进制文件以及库使用的头文件和其他捆绑资源,位于单个包中.框架是 Mac 库分发的首选方法.

If you're creating a Mac library, you have either the option of creating a dylib, which includes only the compiled binary for the library, or creating a framework, which includes the compiled binary as well as headers and other bundle resources used by the library, in a single package. Frameworks are the preferred method of library distribution for the Mac.

如果您要创建 iOS 库,iOS 不支持任何类型的动态库(没有 dylib 或框架),因此您会被 创建静态库以分发您的代码.

If you're creating an iOS library, iOS doesn't support dynamic libraries of any kind (no dylibs or frameworks) so you're stuck with creating static libraries to distribute your code.

更多推荐

.dll 等效于 Mac OS X

本文发布于:2023-10-07 15:16:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469741.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:dll   Mac   OS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!