Skip to content

Store generated binaries in the cocoapods cache #91

Closed
@acecilia

Description

@acecilia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions