Help tuist project work with vscode-swift

I have a simple project I started with tuist init --platform macos here:

I want to make it work with VSCode and vscode-swift extension however I get lint errors as the extension fails to run with Tuist.

Maintainer of extension said this:

Which is confusing to me because tuist project does have Project.swift and it uses SPM.

Can someone please help make Tuist work with VSCode? Thank you. :heart:

Hey!

We’d love to make Tuist work with the vscode-extension, but it would require quite some work. I think we’d need to build a dedicated VSCode extension as the implementation would end up being Tuist-specific and it wouldn’t make sense to be included directly in the vscode-extension.

The Tuist team doesn’t have current plans to work on this, but we’d love to help if there’s somebody else who’d be interested in taking this work on.

1 Like

Hey, I am interested in taking this on as it’s quite crucial I get swift working with Cursor.

Let me know what the best parts I can do to start on this.

You’d need to make vscode-swift work with Xcode projects by connecting the Swift LSP and the Xcode project at hand. No need to add support for adjusting things that you’d normally do in Xcode GUI as Tuist manifests are the source of truth. To read the Xcode project, you can use the XcodeProj library as the extension would need to know for example a list of schemes.

I’m not too familiar with the vscode-swift extension and the work here wouldn’t be Tuist-specific. You might want to ask the maintainer of the extension to give you some extra pointers on this. They might be interested in having support for Xcode projects as well.

1 Like