What is framework?

A framework is a bundle (a structured directory) that contains a dynamic shared library along with associated resources, such as nib files, image files, and header files. When you develop an application, your project links to one or more frameworks. For example, iPhone application projects link by default to the Foundation, UIKit, and Core Graphics frameworks. Your code accesses the capabilities of a framework through the application programming interface (API), which is published by the framework through its header files. Because the library is dynamically shared, multiple applications can access the framework code and resources simultaneously. The system loads the code and resources of a framework into memory, as needed, and shares the one copy of a resource among all applications.

Because a framework is a bundle, you may access its contents using the
[NSBundle](https://developer.apple.com/documentation/foundation/bundle)
class or, for procedural code, CFBundle of Core Foundation. You may create your own frameworks for OS X, but third-party frameworks are not allowed on iOS. On OS X, you may browse the contents of a framework in the Finder. When developing for either platform, you may also view the header files of a framework from within the Xcode application.

https://developer.apple.com/library/content/documentation/General/Conceptual/DevPedia-CocoaCore/Framework.html#//apple_ref/doc/uid/TP40008195-CH56-SW1

How to create and distribute iOS frameworks
https://www.raywenderlich.com/126365/ios-frameworks-tutorial

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容