A CocoaPods plugin that archives your pod into a .a file for distribution
This plugin is for CocoaPods developers, who need to distribute their Pods not only as CocoaPods, but also as static libraries. Some users just like it the good old fashioned way.
There are still a number of advantages to developing against a
podspec, even if your public distribution is closed-source:
- You can easily use the Pod in-house open-source, which makes step-by-step debugging a breeze.
- You can pull in third-party dependencies using CocoaPods. (Note: Your static library could cause linker errors in certain projects, where duplicate symbols are present due to common dependencies.)
- You can declaratively specify build settings (e.g. frameworks, compiler flags) in your
podspec. This is easier to keep track of than build settings embedded in your Xcode project.
$ gem install cocoapods-archive
or add a line to your Gemfile:
$ cd YOUR_POD && pod lib archive
pod lib archive --help.