Skip to content

翻訳 🌍

このページの翻訳を行ったり、改善したりすることができます。

コントリビュートする

XcodeProj ベースのパッケージ統合 {#generated-project-with-xcodeproj-based-integration} で生成されたプロジェクト。

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: "0.1.0")
+   .package(id: "pointfreeco.swift-composable-architecture", from: "0.1.0")
]

Released under the MIT License.