Skip to content

andre-alves/cocoapods-copy-resources-once

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cocoapods-copy-resources-once

The build phase for copying resources from pods can be very slow if your project or dependencies have many resources.

This patch attempts to improve the build phase by running it only when needed and not in every build.

Tested with cocoapods 1.2.0 and 1.3.1

Installation

  1. Place copy_pod_resources_once.patch in your project's root directory.
  2. Add the following code to your Podfile:
post_install do | installer |
    system('find "./Pods/Target Support Files" -name "*-resources.sh" | xargs -I{} patch -p0 {} -i ./copy_pod_resources_once.patch && find "./Pods/Target Support Files" -name "*-resources.sh" -exec sh -c "echo \"create_nonce_file\" >> \"{}\"" \;')
end
  1. Run pod install.

About

⚡️ Avoid copying pod resources when possible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published