框架和动态库之间的主要区别是什么?

时间:2021-06-12 13:24:48

What is the main difference between frame work and dynamic library

框架工作和动态库之间的主要区别是什么

3 个解决方案

#1


13  

At its heart, an OS X framework is a dynamically linked library. The Framework is a special directory structure called a "framework bundle" that contains one or more versions of the dynamically linked library, as well as dependent frameworks, resources, metadata, etc. Other "bundles" on OS X include .app bundles (which contain an executable as well as resources, dependent frameworks, etc...).

OS X框架的核心是动态链接库。 Framework是一个称为“框架包”的特殊目录结构,它包含动态链接库的一个或多个版本,以及依赖框架,资源,元数据等.OS X上的其他“包”包括.app包(其中)包含可执行文件以及资源,依赖框架等...)。

#2


8  

Dynamic library is a basic concept mostly independent from the specific platform, i.e. you can talk about dynamic libraries on OSX, Linux, Windows and mean the same basic thing - a piece of relocatable object code with exported API symbols that is composed in a way that allows it to be loaded and shared on demand by applications on the platform.

动态库是一个基本概念,大多数独立于特定平台,即你可以在OSX,Linux,Windows上讨论动态库,这意味着相同的基本内容 - 一块可重定位目标代码,带有导出的API符号,其组成方式是允许它由平台上的应用程序按需加载和共享。

A framework is an OSX-specific term. It is a package which defines some commonly agreed upon directory structure and stores dynamic libraries, resources, description of the package and other relevant stuff at predefined locations. Which means that it has mostly semantical meaning which allows developers (and tools they create) to refer to it in a commonly understood way. It is worth noting that framework is not required to contain shared libraries at all.

框架是OSX特定的术语。它是一个包,它定义了一些共同商定的目录结构,并在预定义的位置存储动态库,资源,包的描述和其他相关内容。这意味着它具有大部分语义含义,允许开发人员(以及他们创建的工具)以通常理解的方式引用它。值得注意的是,框架根本不需要包含共享库。

#3


2  

The Anatomy of a Framework might be useful. Specifically the Versions/Current/MyFramework mentioned in that example is a shared library. That section goes on to describe some of the other things that might exist in a framework bundle.

框架剖析可能很有用。具体来说,该示例中提到的Versions / Current / MyFramework是一个共享库。该部分继续描述框架包中可能存在的一些其他内容。

#1


13  

At its heart, an OS X framework is a dynamically linked library. The Framework is a special directory structure called a "framework bundle" that contains one or more versions of the dynamically linked library, as well as dependent frameworks, resources, metadata, etc. Other "bundles" on OS X include .app bundles (which contain an executable as well as resources, dependent frameworks, etc...).

OS X框架的核心是动态链接库。 Framework是一个称为“框架包”的特殊目录结构,它包含动态链接库的一个或多个版本,以及依赖框架,资源,元数据等.OS X上的其他“包”包括.app包(其中)包含可执行文件以及资源,依赖框架等...)。

#2


8  

Dynamic library is a basic concept mostly independent from the specific platform, i.e. you can talk about dynamic libraries on OSX, Linux, Windows and mean the same basic thing - a piece of relocatable object code with exported API symbols that is composed in a way that allows it to be loaded and shared on demand by applications on the platform.

动态库是一个基本概念,大多数独立于特定平台,即你可以在OSX,Linux,Windows上讨论动态库,这意味着相同的基本内容 - 一块可重定位目标代码,带有导出的API符号,其组成方式是允许它由平台上的应用程序按需加载和共享。

A framework is an OSX-specific term. It is a package which defines some commonly agreed upon directory structure and stores dynamic libraries, resources, description of the package and other relevant stuff at predefined locations. Which means that it has mostly semantical meaning which allows developers (and tools they create) to refer to it in a commonly understood way. It is worth noting that framework is not required to contain shared libraries at all.

框架是OSX特定的术语。它是一个包,它定义了一些共同商定的目录结构,并在预定义的位置存储动态库,资源,包的描述和其他相关内容。这意味着它具有大部分语义含义,允许开发人员(以及他们创建的工具)以通常理解的方式引用它。值得注意的是,框架根本不需要包含共享库。

#3


2  

The Anatomy of a Framework might be useful. Specifically the Versions/Current/MyFramework mentioned in that example is a shared library. That section goes on to describe some of the other things that might exist in a framework bundle.

框架剖析可能很有用。具体来说,该示例中提到的Versions / Current / MyFramework是一个共享库。该部分继续描述框架包中可能存在的一些其他内容。