Integrating Cocoapods with large existing Xcode Workspace

alayers2

I have recently been working with Cocoapods on my own projects, and would like to incorporate a couple of pods into a project at work. The problem is that our code consists of close to 20 projects stored inside a large workspace, sorted into folders. The structure of the projects is

  • Workspace
    • Apps (Folder)
      • Project 1
      • Project 2
      • etc...
    • Modules
      • More Projects
      • etc
    • Base Components
      • Even More Projects
      • etc

I am unsure how to write a podfile that would link a pod (RETableView in this case) against an app without disturbing the existing structure of the workspace? Is this even possible? If it isn't possible to incorporate cocoapods without changing the existing workspace, is it possible to set up cocoapods to compile pods as standalone libraries that I could incorporate into our project?

Keith Smiley

With CocoaPods 1.x you can use :integrate_targets => false in your Podfile like this:

install! :integrate_targets => false

You can find the documentation for this here

Previously (for older CocoaPods versions):

After creating your Podfile use pod install --no-integrate documented here. This will create the Pods project that you can then include in your workspace. Please make sure everything in your project is checked into your version control system first just in case anything goes wrong.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

XCode 5.1的Cocoapods错误

来自分类Dev

Xcode:了解CocoaPods的依赖关系

来自分类Dev

Xcode Swift 3 Cocoapods错误

来自分类Dev

Xcode 找不到 CocoaPods 模块

来自分类Dev

编辑Xcode xcconfig文件和Cocoapods

来自分类Dev

从Xcode cocoapods插件运行Pod安装

来自分类Dev

Xcode 5.1.1在安装CocoaPods时出错

来自分类Dev

Xcode 6和(可能)cocoapods生成错误

来自分类Dev

Xcode 6找不到cocoapods库

来自分类Dev

Xcode 5.1.1在安装CocoaPods时出错

来自分类Dev

Cocoapods-xcode-select:错误:工具'xcodebuild'需要Xcode

来自分类Dev

使用Xcode 5和Xcode 4.6.3的CocoaPods安装问题

来自分类Dev

xcode-在Framework和Workspace之间共享代码

来自分类Dev

与XCode机器人和cocoapods的持续集成

来自分类Dev

Xcode构建在Cocoapods复制资源上失败

来自分类Dev

CocoaPods无法与Xcode 5.0.2一起安装

来自分类Dev

CocoaPods是否可以防止双击XCode项目文件?

来自分类Dev

使用Cocoapods在Xcode中为TODO和FIXME生成警告

来自分类Dev

通过SVN与团队共享支持CocoaPods的Xcode项目

来自分类Dev

从Xcode 5.1开始,无法在cocoapods中构建模块“ UIKit”

来自分类Dev

使用cocoapods的Xcode 6“解析问题,预期类型”

来自分类Dev

将Cocoapods与现有的大型Xcode工作区集成

来自分类Dev

dyld:库未加载cocoapods 0.37和Xcode 6.3

来自分类Dev

Cocoapods在最新的Xcode 11.2.1版本上导致错误

来自分类Dev

通过SVN与团队共享支持CocoaPods的Xcode项目

来自分类Dev

使用FMDB,SqliteCipher和CocoaPods的新Xcode项目的警告

来自分类Dev

使用Cocoapods在Xcode中为TODO和FIXME生成警告

来自分类Dev

使用CocoaPods安装SlackTextViewController的Swift / Xcode 7问题

来自分类Dev

为什么Xcode会尝试转换googlemap cocoapods框架?

Related 相关文章

热门标签

归档