Xcode 26 beta 7 support for SwiftPM traits

demo project: GitHub - zhiqiangj217/xcode26-b7-traits

package A depends on package B, package B define a trait: TraitB

  1. Open A with Xcode26 beta7
  2. Run A
  3. Edit Package.swift of A
    dependencies: [.package(path: "../B", traits: ["TraitB"])],
  4. 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

hi @zhiqiangj217

This is a great report, but to be actionable we need it as a Github Issue - it will otherwise be lost on the forums here. Could you please open a new issue with these details at GitHub · Where software is built?

i see this message, so i file a feedback at feedbackassistant.apple.com,

Thanks great, thank you!