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

Failed to generate project and workspace via tuist #9

Open
ChaseChoi opened this issue May 24, 2022 · 4 comments
Open

Failed to generate project and workspace via tuist #9

ChaseChoi opened this issue May 24, 2022 · 4 comments

Comments

@ChaseChoi
Copy link
Contributor

$ tuist version 
2.6.0

$ tuist generate
`JGProgressHUD` is not a valid configured external dependency
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose
@icedice
Copy link

icedice commented Jun 9, 2022

I'm seeing this as well. My guess is that this is related to SPM and that Tuist uses whatever SPM version you have on your machine and that newer versions makes it fail, but this is just speculation for now.

I swapped out the SPM dependency for Carthage and now the project is generated correctly..

@icedice
Copy link

icedice commented Jun 9, 2022

I figured it out. It seems like reason changes to the format of Package.resolved was causing the issue.
Switching to the Swift 5.5 toolchain resolved the issue.

I would love to see Tuist either embed and use the correct toolchain or at least check that a compatible toolchain is being used...

@ChaseChoi
Copy link
Contributor Author

Thank you @icedice , I have generated the project successfully.

  1. Update file Tuist-Pokedex/Tuist/Dependencies.swift
// Tuist-Pokedex/Tuist/Dependencies.swift
let dependencies = Dependencies(
    carthage: [
        .github(path: "JonasGessner/JGProgressHUD", requirement: .upToNext("2.0.0")),
    ],
    platforms: [.iOS]
)
  1. Generate project
$ tuist dependencies fetch
$ tuist generate

@ronanociosoig
Copy link
Owner

FYI the most up-to-date version of this project is in another account

https://github.com/ronanociosoig-200/Tuist-Pokedex

Sorry for the slow response and confusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants