.dll 等效于 Mac OS X [英] .dll Equivalent on Mac OS X

查看:63
本文介绍了.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆