如何使用Frameworks,Extensions和CocoaPods构建Xcode项目 [英] How to structure a Xcode project with Frameworks, Extensions and CocoaPods
问题描述
NB:此处是此问题的更抽象和简化的子集.
添加了触摸框架,扩展和 Apple Watch Xcode 6项目和工作区变得越来越复杂.
With the addition of Touch Frameworks, Extensions and the Apple Watch Xcode 6 projects and workspaces are getting more and more complex.
如果将 CocoaPods 添加到这种混合中,事情将变得几乎难以管理.
If you add CocoaPods into this mix things start to get almost unmanageable.
我如何构造具有以下目标和依赖关系的Xcode项目/工作区? (假设:我正在将Git用于所有组件,我正在将CocoaPods用于所有第三方代码,我正在使用Xcode 6).
How would I structure an Xcode project/Workspace with the following targets and dependancies? (Assumptions: I am using Git for all the components, I am using CocoaPods for all third party code, I am using Xcode 6).
- MyCoolApp
- 通过CocoaPods的多个第三方用户界面库
- MyCoolNetworking.framework,我作为Git子模块创建的框架(项目)
- 通过CocoaPods进行AFNetworking
- 通过CocoaPods的其他数据处理代码
- MyCoolApp
- Several 3rd Party UI libraries via CocoaPods
- MyCoolNetworking.framework, a framework (project) I created as a Git Sub-module
- AFNetworking via CocoaPods
- Other data processing code via CocoaPods
- 包括来自CocoaPods的一些应用和扩展通用的代码
如您所见,这是一个复杂的结构,包括几个CocoaPods实例.有关如何解决所有这些问题的任何建议都将有所帮助.
As you can see this is a complex structure including a couple of CocoaPods instances. Any advice on how to solve any or all of these issues will be helpful.
(我的计划是写出自己的一些想法,然后综合其他所有人的答案,这无疑将是一份有生命的文件).
推荐答案
评论多于答案,但我对此没有足够的声誉: 您是否尝试过使用cocoapods xcode插件?我使用它,它独立地构造了豆荚,所以我什至不必担心它.
More of a comment than an answer, but I don't have enough reputation for it: Have you tried using the cocoapods xcode plugin? I use it and it structures the pods on its own, so I don't even have to worry about it.
这篇关于如何使用Frameworks,Extensions和CocoaPods构建Xcode项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!