コンテンツへスキップ

XcodeProjベースのパッケージ統合を使用した生成プロジェクト

XcodeProjベースの統合を使用する場合、レジストリで利用可能な依存関係を解決するために--replace-scm-with-registryフラグを使用できます。これをTuist.swiftファイル内のinstallOptionsに追加してください:

swift
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 パッケージのレジストリを使用するには、次のようにします:

diff
dependencies: [
- .package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "1.0.0")
+ .package(id: "pointfreeco.swift-composable-architecture", from: "1.0.0")
]