I use Cocoapods to integrate my workspace. I have about 45 pods that I use in my project. I would like to attribute all the license headers and was wondering is there a way I can fetch and concatenate all the headers or should I do it manually?
A file with this information is actually generated by default by CocoaPods. This file is generated under Pods/Target Support Files/Pods/Pods-Acknowledgements.plist
. You can then add a post_install
hook in your Podfile
to copy this to somewhere where you can use it. Here's the official example:
post_install do | installer |
require 'fileutils'
FileUtils.cp_r('Pods/Target Support Files/Pods/Pods-Acknowledgements.plist', 'Resources/Settings.bundle/Acknowledgements.plist', :remove_destination => true)
end
Read all about this on the wiki page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With