如何编译xcode4项目在第二个项目中用作框架? [英] How to compile xcode4 project to use as framework in second project?

查看:89
本文介绍了如何编译xcode4项目在第二个项目中用作框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在iPhone的xcode4中有项目,我怎样才能将它作为其他项目的框架?

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

谢谢。

推荐答案

看看创建框架一章。

主要是将框架文件添加到项目中设置头文件包括路径。注意调试和发布版本。如果你不得不不时地在它们之间切换,这有点令人讨厌和混乱。为了使这更加透明,我安装了一个构建后操作(菜单产品/编辑方案),它只是将两个库复制到一个具有不同名称的位置。

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.

这篇关于如何编译xcode4项目在第二个项目中用作框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆