简体   繁体   中英

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.

My framwork is wrapper on top of existing POD library.

Is it Possible by using Cocoa POD or Is there any alternate solution?

Thanks in advance !

You have to define the dependency framework into your podspec file

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

  spec.dependency 'SomeOtherPod'
end

When installing your framework with 'pod install' it will automatically fetch the specified pod

More info : https://guides.cocoapods.org/syntax/podspec.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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