Xcode paket entegrasyonu ile oluşturulan proje
Tuist Projeleri ile paketlerin Xcode'un varsayılan entegrasyonunu kullanıyorsanız, bir paket eklerken URL yerine kayıt defteri tanımlayıcısını kullanmanız gerekir:
swift
import ProjectDescription
let project = Project(
name: "MyProject",
packages: [
// Source control resolution
// .package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "1.0.0")
// Registry resolution
.package(id: "pointfreeco.swift-composable-architecture", from: "1.0.0")
],
targets: [
.target(
name: "App",
destinations: .iOS,
product: .app,
bundleId: "dev.tuist.App",
dependencies: [
.package(product: "ComposableArchitecture"),
]
)
]
)
Tip
Her paketi kayıt defteri tanımlayıcısıyla eklemek zorunda değilsiniz. Proje oluşturulduktan sonra tuist registry setup komutunu çalıştırmak, Xcode'u kaynak kontrol URL'siyle bildirilen paketleri kayıt defterinden çözümleyecek şekilde de yapılandırır; bu işlemi registryEnabled tek başına yapmaz. Bkz. Kaynak kontrol paketlerini çözümleme.