iOS Private Frameworks

…衆ロ難τιáo~ 提交于 2019-12-08 08:43:03

问题


I'm trying to use Private Frameworks in my project, The problem is when I add the .framework file to the project, there is no header file

Any solution for that?

Thanks!


回答1:


What BJ Homer said is correct: private frameworks are for Apple's use only, so there's no reason why they would ship the headers.

That said, if you want to walk on the wild side, and you don't want to submit your app to the app store, you can try using class-dump to create headers based on the library file in the framework. This won't generate the real headers that Apple uses - you just get the method signatures. You don't get any constants or C functions, and you certainly don't get any informative comments. Any private frameworks you do use will probably change in the next release of iOS, breaking your app.




回答2:


You can browse and search the private (and public) headers https://github.com/nst/iOS-Runtime-Headers generated dynamically by iOS Runtime Browser https://github.com/nst/RuntimeBrowser/.




回答3:


That's precisely why they're labeled "Private"; they don't want other people using them, and thus have not included the headers.



来源:https://stackoverflow.com/questions/9171160/ios-private-frameworks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!