# 使用 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: "0.1.0")
        // Registry resolution
        .package(id: "pointfreeco.swift-composable-architecture", from: "0.1.0")
    ],
    targets: [
        .target(
            name: "App",
            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>。
