Skip to content

How does Tuist determine the linking type of SPM dependencies? #6155

Discussion options

You must be logged in to vote

Is it always a static library?

Yes, by default, if a product is only .automatic, we choose static. It gets more complicated if there are two products depending on the same target where one has a hardcoded .dynamic linking type, such as Alamofire. In those cases, we prefer the hardcoded type.

Does it take into account how many targets depend on SPM dependencies?

No, it does not.

How exactly is the Resource Bundle compiled?

During tuist cache, we generate only one resource bundle, which is why you see a simulator bundle. As noted in the issue, we currently don't officially support using tuist cache for release builds but we plan to fix that soon.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ernest0-Production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants