Question or problem
After upgrading to Tuist 4…x, I am unable to generate a project using tuist generate, and I receive the following message:
✖ Error
The 'tuist generate' command is only available for generated projects and Swift packages.
...
Expectation
I tried initializing a new project and found that the only difference is
let tuist =Tuist(project: .tuist())
and let tuist =Tuist(project: .xcode())
When I changed my current project to .tuist()
, I was able to successfully use tuist generate
.
Since I only started using Tuist from version 4.48, I’m not sure if .xcode()
has been deprecated or if this is a bug. Although I can now use it, I would like to understand the reason behind this.
Context
- Tuist version: 4.49.x
Reproduction (mandatory for problems)
Include a reproducible project and steps to reproduce the issue. If you have logs, include them too.
Wrong configuration:
Tuist.swift
import ProjectDescription
let tuist = Tuist(project: .xcode())