`tuist generate` failed with "no such module" on MacOS Sequoia

First, I want to say that I’m not used to Tuist.

I have to maintain a project using Tuist, following given instructions about 3 steps:

tuist clean
tuist install
tuist generate

I finished some tasks couple months ago without any issue with Tuist 4.31.0, Xcode 16.2, Mac OS Sonoma.

Now, with same machine, but with fresh install Mac OS Sequoia, XCode 16.4, with source code from the past, I run the same 3 steps. clean & install are success, but generate throws error like:

swiftc command exited with error code 1 with messgage: emit-module command failed with exit code 1 … /Tuist/ProjectDescriptionHelpers/Project+Templates.swift: no such module ‘A’

I tried change tuist from 4.31.0 to 4.71.0 but I still got the same error.

Here is my project structure: ( [ ] means folder)

[Root]

  • [Tuist]
    • config.swift
    • [ProjectDescriptionHelpers]
      • xxx.swifts // contain import A
  • [Plugins]/[A]/Plugin.swift

With config.swift:

let config = Config(
plugins: [
.local(path: .relativeToRoot("Plugins/A"))
]
)

And Plugins/A/Plugin.swift:

let plugin = Plugin(name: "A")

I’m stuck here. Please tell me where do I have to look? Thank you.

Hey @soleilpqd :waving_hand:

What is the plugin A? Is that a ProjectDescriptionHelpers plugin?

You can try moving the contents of the plugin directly into the ProjectDescriptionHelpers directory to see if that helps.