Is there a way to get the whole license header from Cocoapods

I use Cocoapods to integrate my workspace. I have about 45 pods that I use in my project. I would like to assign all the license headers and wondered if there is a way that I can extract and combine all the headers, or should I do it manually?

+6
source share
1 answer

A file with this information is actually generated by CocoaPods by default. This file is created under Pods/Target Support Files/Pods/Pods-Acknowledgements.plist . You can then add the post_install hook to your Podfile to copy it to where you can use it. Here is an 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 it all on the wiki page.

+9
source

Source: https://habr.com/ru/post/978350/


All Articles