使用 XcodeProj 基于包集成的生成项目
使用 XcodeProj 基于包集成的生成项目 {#generated-project-with-xcodeproj-based-integration}
Section titled “使用 XcodeProj 基于包集成的生成项目 {#generated-project-with-xcodeproj-based-integration}”当使用 --replace-scm-with-registry 标志来从注册表解析依赖项(如果可用)。将其添加到 Tuist.swift 文件中的 installOptions:
import ProjectDescription
let tuist = Tuist( fullHandle: "{account-handle}/{project-handle}", project: .tuist( installOptions: .options(passthroughSwiftPackageManagerArguments: ["--replace-scm-with-registry"]) ))如果你想确保每次解析依赖项时都使用注册表,你需要更新 Tuist/Package.swift 文件中的 dependencies,使用注册表标识符而不是 URL。注册表标识符的形式始终为 {organization}.{repository}。例如,要使用 swift-composable-architecture 包的注册表,请执行以下操作:
dependencies: [ .package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "0.1.0") .package(id: "pointfreeco.swift-composable-architecture", from: "0.1.0")]