Cocoapods aggregates installed pod's license to Pods/Pods-acknowledgements.plist. But it also includes private pod's license. AckFilter filters out such license by arbitrary pattern and re-generate aggretated plist.
Add this line to your application's Gemfile:
gem 'cocoapods-ack_filter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cocoapods-ack_filter
pod ack-filter PATTERN [--input=FILENAME] [--output=FILENAME]
- PATTERN is regexp pattern string
- --input is input acknowledgements.plist filename
- --output is output filename
pod ack-filter MyCompany
# => Licenses which includes "MyCompany" are filtered out and output to "Acknowledgements.plist"
pod ack-filter MyCompany --output=Filtered.plist
# => Licenses which includes "MyCompany" are filtered out and output to "Filtered.plist"
Also, you can use ack_filter within Podfile.
post_install do
  Pod::Command::AckFilter.filter(pattern: /MyCompany/, output: 'Filtered.plist')
end
For complex condition, you can use block to define filter.
post_install do
  Pod::Command::AckFilter.filter(output: 'Filtered.plist') do |text|
    text =~ /MyCompany/ && text !~ /Foobar/
  end
end
- Fork it ( https://github.com/[my-github-username]/cocoapods-ack_filter/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request