demo project: GitHub - zhiqiangj217/xcode26-b7-traits
package A depends on package B, package B define a trait: TraitB
- Open A with Xcode26 beta7
- Run A
- Edit Package.swift of A
dependencies: [.package(path: "../B", traits: ["TraitB"])], - Clean Build Folder and Run A again
step 4 should be failed, because without "TraitB" package A can not use struct B in package B,
but it is succeed
fyi: swift run comand is working as expected