Hive Hive
Sign in

tuist generate gives error: no input files with empty ProjectDescriptionHelpers

GitHub issue · Open

Metadata
Source
tuist/tuist #8110
Updated
Jun 11, 2026
Domains
CLI
Details

What happened?

I may have encountered a bug in tuist generate. It started to always break with error: no input files on the first try (after clean). But weirdly it succeeded on second.

It was caused by the project having empty folder: {project}/Tuist/ProjectDescriptionHelpers. Removing the empty ProjectDescriptionHelpers fixed the issue.

I would hope the tool would be able give more descriptive error or then skipping the empty folder (from swiftc calls).

It was also weird how it succeeded after the first failure.

How do we reproduce it?

  1. tuist init
  2. Create a generated project … name MyProject … iOS
  3. cd MyProject
  4. mkdir Tuist/ProjectDescriptionHelpers
  5. tuist generate <- fails with error: no input files
  6. tuist generate <- weirdly this now succeeds

Error log

% tuist generate
Loading and constructing the graph
It might take a while if the cache is empty
error: no input files
✖ Error
The 'swiftc' command exited with error code 1 and message:
error: no input files

macOS version

15.5

Tuist version

4.49.1

Xcode version

16.4

Comments
D
dosubot[bot] Aug 28, 2025

Hi @MarkusSintonen! I’m Dosu and I’m helping the tuist team.

This happens because Tuist tries to compile any Swift files in the Tuist/ProjectDescriptionHelpers directory during project generation. If the directory exists but is empty, Tuist still invokes swiftc, which fails with “error: no input files”. There’s currently no guard in Tuist to skip compilation or provide a more descriptive error when the folder is empty—swiftc’s error is just relayed to you. The reason it only fails on the first run after a clean is likely due to Tuist’s caching: after the first failure, a cache or build artifact is created, so the second run doesn’t try to compile the empty directory again, and succeeds instead.

This is a known gap in Tuist’s error handling, but there isn’t documentation or an open ticket specifically about it. A recent change in Tuist switched from using glob patterns to specifying buildable folders, which may have made this edge case more likely to surface if the folder is empty (docs, PR #8026).

Workarounds: either remove the empty ProjectDescriptionHelpers directory, or add a dummy Swift file (like Placeholder.swift) to avoid the error. Improvements could include skipping empty folders or providing a clearer error message when this happens.

To reply, just mention @dosu.


Share context across your team and agents. Try Dosu.

Leave Feedback Learn about tuist with Dosu Add Dosu to your team