Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are private frameworks supported on iOS?

Recently I started to modularize my applications much more aggresively than I used to, separating pieces of code into frameworks or libraries.

I like the concept of “private frameworks” in desktop Cocoa, ie. the frameworks included in the application bundle. From my small experience the frameworks are better suited for code reuse than simple libraries, as the frameworks can include their own headers with them. This makes adding a new framework to an existing project a whole lot easier.

The problem is that these “private” frameworks are not supported on iOS. You have to do with static libraries there, and the header management is a pain. Is there a good technical reason for Apple to not support frameworks on iOS?

(Just to make sure: Apple unfortunately uses the term “private framework” for two things. The first is “custom” frameworks that ship with an application, the second is undocumented and prohibited frameworks that people are not supposed to use on iOS. I’m asking about the former.)

PS. Did this change in iOS 8? There’s a “Cocoa Touch Framework” template in Xcode 6.

like image 527
zoul Avatar asked Jul 20 '11 07:07

zoul


People also ask

What is private framework on Iphone?

Private frameworks are frameworks which you are not allowed to use. They are not expected to be used outside of Apple, hence "Private". They are often lower-level libraries which may "break" the system if not used correctly.

Which framework is used in iOS?

The UIKit framework provides the required infrastructure for your iOS or tvOS apps.

What is Heimdal framework?

The taxonomy and Heimdall framework provided a toolkit for characterising LHS literature in terms of the following thematic and analytical aspects to assess whether the LHS demonstrates: Taxonomic consistency – conforms to the taxonomy. Patient focused – ensures personalised health care, known as PM.

How do I open a framework in Xcode?

To include a framework in your Xcode project, choose Project > Add to Project and select the framework directory. Alternatively, you can control-click your project group and choose Add Files > Existing Frameworks from the contextual menu.


1 Answers

It appears that custom frameworks are now supported by Xcode 6:

iOS developers can now create dynamic frameworks. Frameworks are a collection of code and resources to encapsulate functionality that is valuable across multiple projects. Frameworks work perfectly with extensions, sharing logic that can be used by both the main application, and the bundled extensions.

like image 84
zoul Avatar answered Nov 15 '22 01:11

zoul