I haven’t tried yet, but it sounds like Xcode now supports package traits. Feels like a very big deal to me.

I think it could help control transitive dependencies, which is a big part of what makes people hesitant about using packages at all.

@mattiem it might finally let me remove some long standing workarounds 🤞
@mattiem what do you mean by “transient dependencies”? (And preemptively because I’m *sure* that’s gonna be my next question: how do you see package trait support helping?)
@tikitu @mattiem "transitive" maybe?

@nicklockwood @tikitu ugh yes that’s what I meant.

I believe that traits can be used to conditionalize a package’s dependencies in a way that is under the control of the end consumer.

@mattiem explain like I’m a dumbass?
@BenRiceM I wrote up something short about it. Does this help? https://www.massicotte.org/blog/package-traits-in-xcode/
Package Traits in Xcode

At long last, package traits are now supported in Xcode and I think it's a big deal.

massicotte.org
@mattiem it does, thank you!