Generated project with the Xcode package integration
If you are using the Xcode's default integration of packages with Tuist Projects, you need to use the registry identifier instead of a URL when adding a package:
swift
import ProjectDescription
let project = Project(
name: "MyProject",
packages: [
// Source control resolution
// .package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "0.1.0")
// Registry resolution
.package(id: "pointfreeco.swift-composable-architecture", from: "0.1.0")
],
targets: [
.target(
name: "App",
product: .app,
bundleId: "dev.tuist.App",
dependencies: [
.package(product: "ComposableArchitecture"),
]
)
]
)
Tip
You don't have to add every package by its registry identifier. Running tuist registry setup once the project has been generated also configures Xcode to resolve packages that are declared with a source control URL from the registry, which registryEnabled doesn't do on its own. See Resolving source control packages.