[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73369":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},73369,"swift-build","swiftlang\u002Fswift-build","swiftlang","A high-level build system based on llbuild, used by Xcode, Swift Playground, and the Swift Package Manager","",null,"Swift",2219,185,96,76,0,1,14,3,28.81,"Apache License 2.0",false,"main",[25,26,27,28,29,30],"build","build-system","build-tool","build-tools","swift","swift-package-manager","2026-06-12 02:03:12","Swift Build\n=======\n\nSwift Build is a high-level build system based on [llbuild](https:\u002F\u002Fgithub.com\u002Fswiftlang\u002Fswift-llbuild) with great support for building Swift. It is used by SwiftPM, Xcode, and Swift Playground.\n\nUsage\n-----\n\n### With SwiftPM\n\nSwift Build is the default SwiftPM build system in nightly snapshots of Swift's `main` branches. In Swift 6.2 and 6.3, it can be enabled by passing `--build-system swiftbuild`. When building SwiftPM from source it will be built as a package dependency. When checking out the full set of Swift repositories, `SWIFTCI_USE_LOCAL_DEPS=1 swift build --package-path \u002Fpath\u002Fto\u002Fswiftpm` can be used to test local changes to Swift Build and SwiftPM together. The `Utilities` directory also contains `SwiftPM+SwiftBuild.xcworkspace` which allows codeveloping the two repositories in Xcode on macOS.\n\n### With Xcode\n\nChanges to swift-build can also be tested in Xcode using the `launch-xcode` command plugin provided by the package. Run `swift package --disable-sandbox launch-xcode` from your checkout of swift-build to launch a copy of the currently `xcode-select`ed Xcode.app configured to use your modified copy of the build system service. This workflow is generally only supported when using the latest available Xcode version.\n\n### With xcodebuild\n\nChanges to swift-build can also be tested in xcodebuild using the `run-xcodebuild` command plugin provided by the package. Run `swift package --disable-sandbox run-xcodebuild` from your checkout of swift-build to run xcodebuild from the currently `xcode-select`ed Xcode.app configured to use your modified copy of the build system service. Arguments followed by `--` will be forwarded to xcodebuild unmodified. This workflow is generally only supported when using the latest available Xcode version.\n\n### Debugging\n\nWhen using Swift Build with SwiftPM, the build process runs entirely within the `swift-build` (or `swift-test`, `swift-run`, etc.) process. You can debug by using `swift run --debugger swift-build ...` or an IDE like VSCode or Xcode.\n\nWhen using the Xcode or xcodebuild workflows above, you can easily set breakpoints and debug. First, open the swift-build package containing your changes in Xcode and choose the \"Debug > Attach to Process by PID or Name…\" menu item. In the panel that appears, type \"SWBBuildServiceBundle\" as the process name and click \"Attach\". The debugger will wait for the process to launch. Run the relevant command shown above to launch Xcode or xcodebuild, and once you open a workspace the swift-build process will launch and the debugger will attach to it automatically.\n\nDocumentation\n-------------\n\n[SwiftBuild.docc](SwiftBuild.docc) contains additional technical documentation.\n\nTo view the documentation in browser, run the following command at the root of the project:\n```bash\ndocc preview SwiftBuild.docc\n```\n\nOn macOS, use:\n```bash\nxcrun docc preview SwiftBuild.docc\n```\n\nTesting\n-------------\nBefore submitting the pull request, please make sure you have tested your changes. You can run the full test suite by running `swift test` from the root of the repository. The test suite is organized into a number of different test targets, with each corresponding to a specific component. For example, `SWBTaskConstructionTests` contains tests for the `SWBTaskConstruction` module which plan builds and then inspect the resulting build graph. Many tests in Swift Build operate on test project model objects which emulate those constructed by a higher level client and validate behavior at different layers. You can learn more about how these tests are written and organized in [Project Tests](SwiftBuild.docc\u002FDevelopment\u002Ftest-development-project-tests.md).\n\n\nContributing to Swift Build\n------------\n\nContributions to Swift Build are welcomed and encouraged! Please see the\n[Contributing to Swift guide](https:\u002F\u002Fswift.org\u002Fcontributing\u002F).\n\nBefore submitting the pull request, please make sure that they follow the Swift project [guidelines for contributing\n code](https:\u002F\u002Fswift.org\u002Fcontributing\u002F#contributing-code). Bug reports should be\n filed in [the issue tracker](https:\u002F\u002Fgithub.com\u002Fswiftlang\u002Fswift-build\u002Fissues) of\n `swift-build` repository on GitHub.\n\nTo be a truly great community, [Swift.org](https:\u002F\u002Fswift.org\u002F) needs to welcome\ndevelopers from all walks of life, with different backgrounds, and with a wide\nrange of experience. A diverse and friendly community will have more great\nideas, more unique perspectives, and produce more great code. We will work\ndiligently to make the Swift community welcoming to everyone.\n\nTo give clarity of what is expected of our members, Swift has adopted the\ncode of conduct defined by the Contributor Covenant. This document is used\nacross many open source communities, and we think it articulates our values\nwell. For more, see the [Code of Conduct](https:\u002F\u002Fswift.org\u002Fcode-of-conduct\u002F).\n\nLicense\n-------\nSee https:\u002F\u002Fswift.org\u002FLICENSE.txt for license information.\n","Swift Build 是一个基于 llbuild 的高级构建系统，广泛应用于Xcode、Swift Playground和Swift Package Manager中。该项目主要使用Swift语言编写，支持高效的Swift项目构建流程，提供了一种更加灵活且强大的方式来管理依赖和编译过程。其核心特性包括与SwiftPM的深度集成、通过命令行工具快速启动开发环境以及便于调试的设计。适用于需要高效自动化构建流程的Swift开发者或团队，尤其是在涉及复杂依赖管理和跨平台构建需求时。此外，对于希望深入了解并定制构建系统的高级用户来说，Swift Build 提供了丰富的文档和调试支持，使其成为学习和研究的理想选择。",2,"2026-06-11 03:45:11","high_star"]