Skip to content

Instantly share code, notes, and snippets.

@Fogh
Created December 28, 2014 15:29
Show Gist options
  • Save Fogh/26048dcfa07282fe7c3f to your computer and use it in GitHub Desktop.
Save Fogh/26048dcfa07282fe7c3f to your computer and use it in GitHub Desktop.
Copy acknowledgements to Settings.bundle (Podfile)
post_install do | installer |
require 'fileutils'
pods_acknowledgements_path = 'Pods/Target Support Files/Pods/Pods-Acknowledgements.plist'
settings_bundle_path = Dir.glob("**/*Settings.bundle*").first
if File.file?(pods_acknowledgements_path)
puts 'Copying acknowledgements to Settings.bundle'
FileUtils.cp_r(pods_acknowledgements_path, "#{settings_bundle_path}/Acknowledgements.plist", :remove_destination => true)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment