如何创建 iPhone 框架并在其他 iPhone 应用程序中使用它 [英] How do I create an iPhone framework and use it in other iPhone applications

查看:27
本文介绍了如何创建 iPhone 框架并在其他 iPhone 应用程序中使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为一些我想包含在其他 iPhone 应用程序中的可重用代码创建一个框架.最好的方法是什么?理想情况下,我希望它像内置框架一样工作,并且让应用程序使用它而不用乱搞构建文件.

I would like to create a framework for some reusable code that I would like to include in other iPhone apps. What is the best way to do it? Ideally, I would like it to work just like builtin frameworks and have the app use it without mucking around with build files.

推荐答案

Apple 禁止在 iPhone 上使用自定义框架.但是你可以使用好的旧静态库.在 3.0 GM SDK 中甚至有一个项目模板,但您也可以简单地自己设置一个静态库目标.

Apple prevents the use of custom frameworks on the iPhone. But you can use good old static libraries. In the 3.0 GM SDK there's even a project template for that, but you can also simply set up a static library target yourself.

这篇关于如何创建 iPhone 框架并在其他 iPhone 应用程序中使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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