Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are Private FrameWorks and how will we use them?

My Question is about private framworks in IphoneOS3.1SDK dirctory

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks/

What are they ? and when i added one of them to my project, they didn't have any headers? How can i use them in my project?

like image 887
Shahrukh Avatar asked Apr 20 '10 19:04

Shahrukh


2 Answers

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. (But the frameworks have to exist because Apple's apps and public frameworks do use the private frameworks.)

Since the private frameworks are not for public use, Apple doesn't need to give any headers or documentations away.

If you're writing for AppStore, you should not use private frameworks (unless you're from Apple). The system will immediately reject your app even before the review process begins.


(On the other hand, for jailbroken platforms you're free to use any frameworks. Even so, the APIs of private frameworks is unstable, that you should avoid them if possible.

There is an ongoing effort to document these private frameworks and API in http://iphonedevwiki.net/index.php/Main_Page.)

like image 96
kennytm Avatar answered Oct 15 '22 23:10

kennytm


Avoid using private frameworks if you would like to submit your App to Apple. Otherwise, you may call any of the available private methods with your own code. Erica Sadun has some info regarding private frameworks on her site.

like image 29
jessecurry Avatar answered Oct 15 '22 22:10

jessecurry