Skip to content

Store generated binaries in the cocoapods cache #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
acecilia opened this issue Aug 27, 2019 · 1 comment
Closed

Store generated binaries in the cocoapods cache #91

acecilia opened this issue Aug 27, 2019 · 1 comment

Comments

@acecilia
Copy link

Instead of rebuilding the binary every time a new binary is needed, it is possible to speed up the process by:

  • When building the binary for the first time, add the compiled binaries to the cocoapods cache (https://guides.cocoapods.org/terminal/commands.html#pod_cache_list).
  • When pod install is executed, if the binary is not in the Pods/_Prebuild subfolder:
    • Check if it is in the cocoapods cache. If yes, just copy it from the cache to the Pods/_Prebuild subfolder.
    • If the binary is not found in the cache, build it and add it to the cache.

This functionality may be implemented in a similar way as Accio has already done: https://github.com/JamitLabs/Accio/blob/stable/Sources/AccioKit/Services/FrameworkCachingService.swift#L16

@acecilia
Copy link
Author

Ups, I just saw this is already raised in #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant