Skip to content

Generated project with the Xcode package integration

Generated project with the Xcode package integration

Section titled “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:

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"),
]
)
]
)