Easy Licensing with cocoapods
I have just discovered a (hidden) feature of Cocoapods that helps you dealing with licenses.
post_install do | installer |
require 'fileutils'
FileUtils.cp_r('Pods/Pods-Acknowledgements.plist', Resources/Settings.bundle/Acknowledgements.plist', :remove_destination => true)
end
Using the above code in your Podfile, it copies all licenses provided by your dependencies and copy them to a plist that can be read by a Settings.bundle.
Source: https://github.com/CocoaPods/CocoaPods/wiki/Acknowledgements#ios-setting-bundle
Written by François Benaiteau
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ios
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#