# 使用 Xcode 套件整合的已產生專案 {#generated-project-with-xcode-based-integration}

若在 Tuist 專案中使用套件的 <.localized_link href="/guides/features/projects/dependencies#xcodes-default-integration">Xcode 預設整合</.localized_link>，新增套件時需使用註冊表識別碼而非 URL：
```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]
> 你不需要為每個套件都使用註冊表識別碼。在專案產生後執行 `tuist registry setup`，也會將 Xcode 設定為從註冊表解析以原始碼控制 URL 宣告的套件，而 `registryEnabled` 本身不會執行此動作。請參閱 <.localized_link href="/guides/features/package-registries/swift/xcode-project#resolving-source-control-packages">解析原始碼控制套件</.localized_link>。
