跳转到内容

使用 Xcode 包集成的生成项目

使用 Xcode 包集成的生成项目 {#generated-project-with-xcode-based-integration}

Section titled “使用 Xcode 包集成的生成项目 {#generated-project-with-xcode-based-integration}”

如果你是 Tuist 项目中使用 Xcode 默认集成 的包,当添加包时需要使用注册表标识符而不是 URL:

import ProjectDescription
let project = Project(
name: "MyProject",
packages: [
// 源代码控制解析
// .package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "0.1.0")
// 注册表解析
.package(id: "pointfreeco.swift-composable-architecture", from: "0.1.0")
],
targets: [
.target(
name: "App",
product: .app,
bundleId: "dev.tuist.App",
dependencies: [
.package(product: "ComposableArchitecture"),
]
)
]
)