Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuist SPM tutorial doesn’t work correctly any more #6288

Open
rhysm94 opened this issue May 15, 2024 · 3 comments
Open

Tuist SPM tutorial doesn’t work correctly any more #6288

rhysm94 opened this issue May 15, 2024 · 3 comments
Labels
type:need/problem Report needs or problems you came across that are not bugs

Comments

@rhysm94
Copy link

rhysm94 commented May 15, 2024

What problem or need do you have?

I’m just trying to learn how to use Tuist, and while following the SPM tutorial I cloned the Composable Architecture GitHub repo, and ran these commands:

tuist install

which appears to have worked fine, but then running

tuist generate

causes this:

Loading and constructing the graph
It might take a while if the cache is empty
Using cache binaries for the following targets: SwiftSyntax, SwiftOperators, SwiftBasicFormat, SwiftParser, SwiftParserDiagnostics, SwiftSyntax509, SwiftSyntax510, SwiftDiagnostics
Target _SwiftSyntaxTestSupport which depends on SwiftSyntaxBuilder does not support the required platforms: visionos, tvos, ios, watchos. The dependency on SwiftSyntaxBuilder must have a dependency condition constraining to at most: macos. Target InlineSnapshotTesting which depends on SwiftSyntaxBuilder does not support the required platforms: ios, watchos, visionos, tvos. The dependency on SwiftSyntaxBuilder must have a dependency condition constraining to at most: macos. Target SwiftSyntaxMacrosTestSupport which depends on SwiftSyntaxMacros does not support the required platforms: ios, visionos, watchos, tvos. The dependency on SwiftSyntaxMacros must have a dependency condition constraining to at most: macos.
Target SwiftSyntaxMacrosTestSupport which depends on SwiftSyntaxMacroExpansion does not support the required platforms: visionos, tvos, ios, watchos. The dependency on SwiftSyntaxMacroExpansion must have a dependency condition constraining to at most: macos.
Fatal linting issues found
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose

I know TCA’s repo is a constantly moving target out of your control, but the tutorial for the SPM method is now not working correctly. Is this just something that tuist doesn’t currently support, or can it be fixed with a minor tweak on the TCA repo, or a tweak to the tuist generate command?

Much appreciated! Thanks 😄

Potential solution

No response

macOS version

14.4

Tuist version

4.13.0

Xcode version

15.4.0

@rhysm94 rhysm94 added the type:need/problem Report needs or problems you came across that are not bugs label May 15, 2024
@pepicrft
Copy link
Contributor

@rhysm94 I'm sorry for that. Would you mind attaching a project where we can reproduce that issue?

@rhysm94
Copy link
Author

rhysm94 commented May 16, 2024

Thanks for replying!
There's not much in the way of a project for me to upload.

I ran these commands:

git clone https://github.com/pointfreeco/swift-composable-architecture
cd swift-composable-architecture
tuist install
tuist generate

It was at the last step that the issue above happens.

@pepicrft
Copy link
Contributor

Thanks! I'll try to debug the issue and provide a fix for it. Note that Tuist doesn't support or flavours of projects that use Package.swift as its DSL. We recommend using Project.swift instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:need/problem Report needs or problems you came across that are not bugs
Projects
None yet
Development

No branches or pull requests

2 participants