使用 Xcode 软件包集成生成项目
如果您使用
Xcode 的默认集成将软件包与 Tuist 项目集成,则在添加软件包时需要使用注册表标识符而不是 URL: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"),
]
)
]
)