I have a very large modular project and I’m trying to optimize caching. Some cached modules don’t seem to be getting used when I generate the project.
For example, I run tuist cache SomeModule , and the output looks like that module and all of it’s dependency modules are successfully cached. But then I run tuist generate and the cached version of SomeModule doesn’t get used.
Cached versions of some of its dependencies do get used, so I’m able to narrow it down to the lowest level problematic module(s), and it looks like Braze and Stripe dependencies are the problem.
I’m unsure of how to keep debugging from here. The docs mention comparing hashes to make sure they match. I run tuist hash cache, note the hash for Stripe, do a clean/install/generate, then tuist hash cache again, and the hash for Stripe matches. What else can I try?
Stripe and Braze shouldn’t be as deep as they are in our dependency graph, but I’m hoping to be able to figure this out vs trying to refactor.
(p.s. tuist is the best thing to ever happen to ios dev
)
EDIT: Was able to reproduce in this simple example:
App Target → Wrapper Module (framework) → Stripe Ios
the cached wrapper module doesn’t get used by generate
It won’t let me upload an attachment but here’s the example project: link