How does Tuist determine the linking type of SPM dependencies? #6155
-
How does Tuist determine exactly how to link a target from Swift Package if I do not explicitly specify
It seems that when pre-compiling SPM targets, it is important to somehow convey information about the platform. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, by default, if a product is only
No, it does not.
During |
Beta Was this translation helpful? Give feedback.
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.No, it does not.
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 usingtuist cache
for release builds but we plan to fix that soon.