简体   繁体   English

我可以使用另一个POD创建自己的POD吗?

[英]Can i create my own POD which is using another POD?

I want to create my own framework(POD) which is using another POD library. 我想创建自己的框架(POD),它使用另一个POD库。

My framwork is wrapper on top of existing POD library. 我的框架是现有POD库之上的包装器。

Is it Possible by using Cocoa POD or Is there any alternate solution? 是否可以通过使用Cocoa POD或是否有任何替代解决方案?

Thanks in advance ! 提前致谢 !

You have to define the dependency framework into your podspec file 您必须在podspec文件中定义依赖关系框架

Pod::Spec.new do |spec|
  [...]

  spec.dependency 'SomeOtherPod'
end

When installing your framework with 'pod install' it will automatically fetch the specified pod 使用“pod install”安装框架时,它将自动获取指定的pod

More info : https://guides.cocoapods.org/syntax/podspec.html 更多信息: https//guides.cocoapods.org/syntax/podspec.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM