Elektrine lite

← Feed

@rwitherspoon@mastodon.social

Post #1799320

2026-04-13 15:36 UTC

@mattiem Loved your post on package traits in Xcode. I’ve got a local package trait working via swift build --traits, but I can’t find any way to toggle it in the Xcode UI. Articles say it should be in the Package Dependencies view in Xcode 26.4, but I’m not seeing it. Right now the only way I've found is manually editing the traits array on the XCLocalSwiftPackageReference in the pbxproj. Am I missing something in the UI, or is that the only way currently?

Replies (1)

  • @mattiem@mastodon.social 2026-04-13 15:39

    @rwitherspoon Oh I'm so glad to hear this! This is what my Xcode "Package Dependencies" UI looks like. Do you not see Traits on the far right side?

    Open ##1929960