What problem or need do you have?
I am trying to get a very basic setup running, but getting an error generating the project.
I have an app, depending on a local Swift Package, which itself depends on a remote (external) package.
I followed the docs:
https://docs.tuist.io/guide/project/dependencies
Ideally I’d like the ‘XcodeProj-based integration’ approach.
MyApp (a SwiiftUI app)
|____ MyUI (A local Swift Package - added as a local dependency to MyApp)
|____ SnapKit (A third-party package hosted on GitHub - added as an external dependency (GitHub) to MyUI)]
- When generating just the
MyUI Tuist project, it works fine.
- When generating the
MyApp Tuist project, I get error: 'SnapKit' is not a valid configured external dependency.
- If I remove the dependency on
SnapKit, I can generate MyApp successfully.
I tried with other frameworks too, not only SnapKit (like Alamofire, DeepDiff, SDWebImage)
MyApp has Project.swift:
let project = Project(
name: "MyTuistApp",
targets: [
.target(
name: "MyTuistApp",
destinations: .iOS,
product: .app,
sources: ["MyTuistApp/Sources/**"],
dependencies: [
.project(target: "MyUI", path: "./Packages/MyUI"),
]
),
]
)
MyApp has Project.swift:
let project = Project(
name: "MyUI",
targets: [
.target(
name: "MyUI",
destinations: .iOS,
product: .framework,
sources: ["Sources/**"],
dependencies: [
.external(name: "SnapKit")
]
)
]
)
and Package.swift:
let package = Package(
name: "MyUI",
dependencies: [
.package(url: "https://github.com/SnapKit/SnapKit", from: "5.0.1")
]
)
Any info would be appreciated, thanks
Potential solution
No response
macOS version
14.1.1
Tuist version
4.9.0
Xcode version
15.2