Make an existing project a framework iOS(使现有项目成为 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 可以原生创建框架.您可以在名为 Building Modern Frameworks 的 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
您的问题不清楚您需要对框架做什么.如果您需要共享一个库,您可以查看 cocoapods 项目.您可以将它用于 public 库或 私人.我在这两种情况下都使用它
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 框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使现有项目成为 iOS 框架
基础教程推荐
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
