How do I create an iPhone framework and use it in other iPhone applications(如何创建 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 应用程序中使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何创建 iPhone 框架并在其他 iPhone 应用程序中使用它


基础教程推荐
- 在 iOS 上默认是 char 签名还是 unsigned? 2022-01-01
- Android ViewPager:在 ViewPager 中更新屏幕外但缓存的片段 2022-01-01
- 如何使 UINavigationBar 背景透明? 2022-01-01
- 固定小数的Android Money Input 2022-01-01
- :hover 状态不会在 iOS 上结束 2022-01-01
- 使用 Ryzen 处理器同时运行 WSL2 和 Android Studio 2022-01-01
- “让"到底是怎么回事?关键字在 Swift 中的作用? 2022-01-01
- LocationClient 与 LocationManager 2022-01-01
- Android文本颜色不会改变颜色 2022-01-01
- 如何使用 YouTube API V3? 2022-01-01