The data couldn’t be read because it isn’t in the correct format

Question or problem

I keep getting the following error message when I do mise x – tuist generate.

✖ Error
  The data couldn’t be read because it isn’t in the correct format.

  Sorry this didn’t work. Here’s what to try next:
   ▸ If the error is actionable, address it
   ▸ If the error is not actionable, let's discuss it in the Troubleshooting & how to
   ▸ If you are very certain it's a bug, file an issue
   ▸ Check out the logs at /Users/xxx/.local/state/tuist/logs/DE4D382E-A113-4251-B8DE-416F86FE96E9.log

There are no details about the error, even with the —verbose option.

The only significant change with my project is a git migration from Bitbucket to Gitlab, which isn’t related to Tuist.

Expectation

I’m expecting Tuist to generate the project or at least to tell me what data isn’t the correct format.

Context

  • Tuist version: 4.98.0 initially, then I upgraded to 4.129.0

We were using the old format let config = Config(…), so I upgraded the Tuist.swift file to use the new format :

let tuist = Tuist(project: .tuist(compatibleXcodeVersions: .all,
                                  swiftVersion: "5.10",
                                  generationOptions: .options(additionalPackageResolutionArguments: [
                                    "-scmProvider", "system"
                                  ])))

I tried commenting some of the packages we’re using to see if there is a problem, but it doesn’t change anything.

Reproduction (mandatory for problems)

I have some logs but I’m not allowed to upload files.

Update:

I have some xcframework stored in the project, which I link using .xcframework(path:).

Commenting these lines fixes the problem with Tuist.

It’s worth adding that this frameworks are now stored using git lfs.

I keep looking …

Well… git-lfs was the problem…

I switched machine and I didn’t realise git-lfs was not installed, so my files were actually not fetched…