Tuist-Pokedex icon indicating copy to clipboard operation
Tuist-Pokedex copied to clipboard

Failed to generate project and workspace via tuist

Open ChaseChoi opened this issue 2 years ago • 4 comments

$ 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

ChaseChoi avatar May 24 '22 14:05 ChaseChoi

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 avatar Jun 09 '22 12:06 icedice

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...

icedice avatar Jun 09 '22 13:06 icedice

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

ChaseChoi avatar Jun 15 '22 14:06 ChaseChoi

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

ronanociosoig avatar Nov 27 '22 00:11 ronanociosoig