Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoa Touch Framework vs Cocoa Touch Static library

Tags:

xcode

xcode6

Any comment on Cocoa Touch Framework vs Cocoa Touch Static library?

Can you distribute a Framework like a static library without source code?

like image 979
Chris G. Avatar asked Aug 13 '14 22:08

Chris G.


People also ask

What is Cocoa Touch static library?

Cocoa Touch Static Library. A. A static library is a collection of compiled source files which is then linked directly into an app's binary. That is, it becomes a part of your app's binary.

What is the difference between Cocoa and Cocoa Touch?

Both Cocoa and Cocoa Touch include the Objective-C runtime and two core frameworks: Cocoa, which includes the Foundation and AppKit frameworks, is used for developing applications that run on OS X. Cocoa Touch, which includes Foundation and UIKit frameworks, is used for developing applications that run on iOS.

What is a Cocoa framework?

The Cocoa frameworks. The classes in Foundation provide objects and functionality that are the basis, or “foundation,” of Cocoa. The classes in Application Kit furnish the objects and behavior that your users see in the user interface, such as windows and buttons, and handle their mouse clicks and key presses.


1 Answers

Cocoa Touch framework support was added in Xcode 6 primarily to support App Extensions in iOS 8 and Mac OS 10.10. App extensions have to be built as Cocoa Touch frameworks.

Frameworks also require less manual work to set up in a project than static libraries, although CocoaPods largely takes care of these pain points.

Frameworks can be - and are by by default - built without the source code in the build target. Usually only header file(s) are in the target. Therefore, you could create and share a binary only Framework.

like image 97
Scott Avatar answered Nov 05 '22 12:11

Scott