How to compile xcode4 project to use as framework in second project?

穿精又带淫゛_ 提交于 2019-12-11 03:43:59

问题


If I have project in xcode4 for the iphone, How can I use it as framework for other project ?

thanks.


回答1:


Have a look at Creating a Framework chapter in XCode docs.

The main thing is to add the framework file to your project and setting up the header file include path. Take care about debug and release builds. It is a little bit annoying and confusing if you have to switch between them from time to time. To get this more transparent I installed a build post-action (menu Product/Edit Scheme) that just copies both libs to one location with different names.



来源:https://stackoverflow.com/questions/6452508/how-to-compile-xcode4-project-to-use-as-framework-in-second-project

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