Question or Problem
I am having trouble connecting the library AAATuist
from a remote repository to my project BBBTuist
using Tuist. I can’t figure out what exactly is wrong with my Tuist configuration. I’ve been working on this issue for several days now, and I would appreciate any help.
Expectation
I expected that Tuist would allow me to easily integrate AAATuist
as an external dependency into my BBBTuist
project without encountering errors.
Context
- Tuist version: 4.38.1
I was trying to set up my project and link it with AAATuist
when I stumbled upon the issue.
Reproduction
Here’s the code I am working with:
import PackageDescription
#if TUIST
import struct ProjectDescription.PackageSettings
let packageSettings = PackageSettings(
productTypes: [:]
)
#endif
let package: Package = .init(
name: "AAATuist",
dependencies: []
)
import ProjectDescription
let project = Project(
name: "AAATuist",
targets: [
.target(
name: "AAATuist",
destinations: .iOS,
product: .framework,
bundleId: "RI.AAATuist",
infoPlist: .default,
sources: ["AAATuist/Sources/**/*.swift"],
dependencies: []
)
]
)
import PackageDescription
#if TUIST
import struct PackageDescription.PackageSettings
let packageSettings: PackageSettings = [
productTypes: ["AAATuist": .framework]
]
#endif
let package: Package = .init(
name: "BBBTuist",
dependencies: [
.package(url: "https://github.com/Alexandr-Ivantsov/AAA.git", branch: "main")
]
)
import ProjectDescription
let project = Project(
name: "BBBTuist",
targets: [
.target(
name: "BBBTuist",
destinations: .iOS,
product: .app,
bundleId: "RI.BBBTuist",
infoPlist: .default,
sources: ["BBBTuist/Sources/**/*.swift"],
dependencies: [
.external(name: "AAATuist")
]
)
]
)
tuist generate
Loading and constructing the graph
It might take a while if the cache is empty
`AAATuist` is not a valid configured external dependency
If you need any additional information to assist with my issue, I would be happy to provide it.