使现有项目成为iOS框架 [英] Make an existing project a framework iOS

查看:101
本文介绍了使现有项目成为iOS框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的项目。我想问一下是否可以将其转换为框架?我尝试过搜索,但是找不到任何关于如何操作的教程。

I have an existing project. I just like to ask if it is possible to convert it to a framework? I have tried searching but I cannot find any tutorial on how to do it.

推荐答案

iOS7或之前的解决方案

如果您想在iOS7中创建框架,可以点击此链接。它解释了如何从静态库开始创建框架。

If you want to create a framework in iOS7 you can follow this link. It explain how to create a framework starting from a static library.

http://www.raywenderlich.com/65964/create-a-framework-for-ios

iOS8解决方案

使用iOS8可以原生地创建框架。你可以在WWDC14网站上找到一个名为建立现代框架的好视频(你会找到视频和pdf)。

With iOS8 is possible to create framework natively. You can find a good video in the WWDC14 website called Building Modern Frameworks (you'll find both videos and pdf).

Cocoapods

从你的问题不清楚你需要做什么框架。如果您需要共享lib,可以查看cocoapods项目。您可以将它用于公共库或私有。我在两种情况下都在使用它

From your question is not clear what you need to do with the framework. If you need to share a lib you can give a look to the cocoapods project. You can use it for both public libraries or privates. I'm using it at work for both the scenarios

这篇关于使现有项目成为iOS框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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