# Source Tooling

**URL:** https://forums.swift.org/c/development/tooling/39.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [About the Source Tooling category](https://forums.swift.org/t/about-the-source-tooling-category/15207)

<div class="topic-metadata">

**Author:** [@Nicole\_Jacque](https://forums.swift.org/u/Nicole_Jacque)\
**Replies:** 0

</div>

This category is for discussing development of tooling related to the Swift compiler.

---

## [Indexing binary Swift frameworks for IDE navigation](https://forums.swift.org/t/indexing-binary-swift-frameworks-for-ide-navigation/89761)

<div class="topic-metadata">

**Author:** [@gildor](https://forums.swift.org/u/gildor)\
**Replies:** 3\
**Last updated:** [October 10, 2026, 4:11pm UTC](https://forums.swift.org/t/indexing-binary-swift-frameworks-for-ide-navigation/89761 "2026-10-10T16:11:33Z")

</div>

Binary Swift frameworks (xcframeworks shipping a .swiftinterface) are invisible to index-based navigation: Xcode's Open Quickly and Find \> Definitions can't find their types, and sourcekit-lsp works around the same gap f…

---

## [Error traces from \`swift test\`?](https://forums.swift.org/t/error-traces-from-swift-test/85671)

<div class="topic-metadata">

**Author:** [@CharlesS](https://forums.swift.org/u/CharlesS)\
**Replies:** 3\
**Last updated:** [August 13, 2026, 4:50pm UTC](https://forums.swift.org/t/error-traces-from-swift-test/85671 "2026-08-13T16:50:55Z")

</div>

When you run Swift tests in Xcode, and a test gets stopped by a thrown error that bubbles all the way back up to the test, Xcode lets you expand the error in the sidebar to see where the error was thrown, and all the oth…

---

## [Compiler-assisted editor isolation hints](https://forums.swift.org/t/compiler-assisted-editor-isolation-hints/88313)

<div class="topic-metadata">

**Author:** [@clayellis](https://forums.swift.org/u/clayellis)\
**Replies:** 4\
**Last updated:** [July 16, 2026, 3:45pm UTC](https://forums.swift.org/t/compiler-assisted-editor-isolation-hints/88313 "2026-07-16T15:45:00Z")

</div>

The other day I was thinking about function colors and it occurred to me that it might be a good idea to take the abstract concept that's useful as a mental model and make it literal. Imagine if when you opened your edi…

---

## [Rust Interop: Generating bindings for Swift modules](https://forums.swift.org/t/rust-interop-generating-bindings-for-swift-modules/86608)

<div class="topic-metadata">

**Author:** [@Lancelotbronner](https://forums.swift.org/u/Lancelotbronner)\
**Replies:** 2\
**Last updated:** [May 10, 2026, 6:10pm UTC](https://forums.swift.org/t/rust-interop-generating-bindings-for-swift-modules/86608 "2026-05-10T18:10:49Z")

</div>

As part of my Swift interop for Rust project (and eventually the reverse Rust interop for Swift), I'm going to want to generate bindings to Swift modules. Ideally I would have type layouts (fields, variants, etc.) to gen…

---

## [Kiro(VSCode fork) issue](https://forums.swift.org/t/kiro-vscode-fork-issue/85943)

<div class="topic-metadata">

**Author:** [@romanindermuehle](https://forums.swift.org/u/romanindermuehle)\
**Replies:** 3\
**Last updated:** [May 10, 2026, 10:43am UTC](https://forums.swift.org/t/kiro-vscode-fork-issue/85943 "2026-05-10T10:43:16Z")

</div>

Currently I try to setup Kiro for Swift development, without any luck. On my Mac I have installed swiftly with the newest swift toolchain 6.3.0. In Kiro I then selected this toolchain and also had to select a working di…

---

## [Testing installation of toolchain](https://forums.swift.org/t/testing-installation-of-toolchain/85405)

<div class="topic-metadata">

**Author:** [@brainchild](https://forums.swift.org/u/brainchild)\
**Replies:** 15\
**Last updated:** [April 28, 2026, 4:15am UTC](https://forums.swift.org/t/testing-installation-of-toolchain/85405 "2026-04-28T04:15:15Z")

</div>

Is any robust means available to test a system installation of the Swift toolchain, for correctness, on a system operating Linux? To be clear, I am not seeking simply to test the correctness of the files generated from …

---

## [Generating export header from .swiftmodule -- breaking change in Swift 6.3?](https://forums.swift.org/t/generating-export-header-from-swiftmodule-breaking-change-in-swift-6-3/85817)

<div class="topic-metadata">

**Author:** [@dblsaiko](https://forums.swift.org/u/dblsaiko)\
**Replies:** 4\
**Last updated:** [April 5, 2026, 8:20pm UTC](https://forums.swift.org/t/generating-export-header-from-swiftmodule-breaking-change-in-swift-6-3/85817 "2026-04-05T20:20:44Z")

</div>

I’ve been working on support for Swift in the Meson build system. For a while now, I have had support for mixed-source (i.e. Swift + C/C++/Obj-C) targets in my tree, and support for consuming a Swift library from another…

---

## [Building Swift toolchain against prebuilt LLVM binaries (under Linux)](https://forums.swift.org/t/building-swift-toolchain-against-prebuilt-llvm-binaries-under-linux/85154)

<div class="topic-metadata">

**Author:** [@brainchild](https://forums.swift.org/u/brainchild)\
**Replies:** 14\
**Last updated:** [March 22, 2026, 2:07am UTC](https://forums.swift.org/t/building-swift-toolchain-against-prebuilt-llvm-binaries-under-linux/85154 "2026-03-22T02:07:09Z")

</div>

Is building of the Swift toolchain currently supported against prebuilt binary distributions of LLVM, instead of the source repository? Builds of LLVM, at least as initiated by the Swift build process, are massive under…

---

## [Snapshot SwiftUI previews from CLI without changing source code](https://forums.swift.org/t/snapshot-swiftui-previews-from-cli-without-changing-source-code/80580)

<div class="topic-metadata">

**Author:** [@gsabran](https://forums.swift.org/u/gsabran)\
**Replies:** 4\
**Last updated:** [March 21, 2026, 10:04am UTC](https://forums.swift.org/t/snapshot-swiftui-previews-from-cli-without-changing-source-code/80580 "2026-03-21T10:04:56Z")

</div>

I've been looking for a way to get snapshots of SwiftUI previews without changing the source code. My use case is that I'm trying to augment the capabilities of coding assistants by letting them "see" what they did (usi…

---

## [SwiftData Models and Sort Descriptors Only Work in Release In One Swift File](https://forums.swift.org/t/swiftdata-models-and-sort-descriptors-only-work-in-release-in-one-swift-file/85244)

<div class="topic-metadata">

**Author:** [@nneuh07](https://forums.swift.org/u/nneuh07)\
**Replies:** 1\
**Last updated:** [March 11, 2026, 7:58am UTC](https://forums.swift.org/t/swiftdata-models-and-sort-descriptors-only-work-in-release-in-one-swift-file/85244 "2026-03-11T07:58:27Z")

</div>

Hey everyone, I found a possible SwiftData or Swift compiler bug, that only is visible on Release builds with nested sort descriptors on an optional relationship. In a minimal repro, sorting a @Query by a nested option…

---

## [How do you get files into simulator?](https://forums.swift.org/t/how-do-you-get-files-into-simulator/85026)

<div class="topic-metadata">

**Author:** [@ak2466](https://forums.swift.org/u/ak2466)\
**Replies:** 2\
**Last updated:** [February 26, 2026, 6:21pm UTC](https://forums.swift.org/t/how-do-you-get-files-into-simulator/85026 "2026-02-26T18:21:47Z")

</div>

I have been trying for over an hour now. When I try to drag a file into the files app in the simulator from my Mac, it opens it in iMessage. Same thing happens when I share the file to the simulator from my Mac’s share s…

---

## [Xcodebuild attempts to build macro package with wrong arch](https://forums.swift.org/t/xcodebuild-attempts-to-build-macro-package-with-wrong-arch/76340)

<div class="topic-metadata">

**Author:** [@pelekon](https://forums.swift.org/u/pelekon)\
**Replies:** 10\
**Last updated:** [February 21, 2026, 12:12am UTC](https://forums.swift.org/t/xcodebuild-attempts-to-build-macro-package-with-wrong-arch/76340 "2026-02-21T00:12:40Z")

</div>

Hello, 3 days ago I made post on apple forum about my problem with building SPM package which contains macros (link Xcodebuild command compiles macro … | Apple Developer Forums). Unfortunately I didn't get any response, …

---

## [CLAUDE.md or AGENTS.md for swiftlang/swift repo](https://forums.swift.org/t/claude-md-or-agents-md-for-swiftlang-swift-repo/83978)

<div class="topic-metadata">

**Author:** [@ariccio](https://forums.swift.org/u/ariccio)\
**Replies:** 0\
**Last updated:** [January 6, 2026, 12:39am UTC](https://forums.swift.org/t/claude-md-or-agents-md-for-swiftlang-swift-repo/83978 "2026-01-06T00:39:06Z")

</div>

I was poking around the swiftlang macro implementation today, and I realized that I might want to experiment with some ideas to improve compiler performance. Back in the olden days, I've played around with profiling and …

---

## [First-party typed accessors for Asset Catalog resources via build-tool plugins](https://forums.swift.org/t/first-party-typed-accessors-for-asset-catalog-resources-via-build-tool-plugins/83857)

<div class="topic-metadata">

**Author:** [@zeeshan1](https://forums.swift.org/u/zeeshan1)\
**Replies:** 17\
**Last updated:** [December 30, 2025, 6:23pm UTC](https://forums.swift.org/t/first-party-typed-accessors-for-asset-catalog-resources-via-build-tool-plugins/83857 "2025-12-30T18:23:45Z")

</div>

Accessing Asset Catalog resources (colors, images, strings, etc.) in Swift currently relies on string-based APIs such as UIColor(named:), which provide no compile-time safety, no autocomplete, and fail silently at runtim…

---

## [GSOC Project. Increase differentiable programming’s language coverage](https://forums.swift.org/t/gsoc-project-increase-differentiable-programming-s-language-coverage/46816)

<div class="topic-metadata">

**Author:** [@Tsekouris](https://forums.swift.org/u/Tsekouris)\
**Replies:** 3\
**Last updated:** [November 6, 2025, 7:08am UTC](https://forums.swift.org/t/gsoc-project-increase-differentiable-programming-s-language-coverage/46816 "2025-11-06T07:08:26Z")

</div>

Hello @rxwei My name is Emmanuel, and I am currently studying Computer Engineering and Computer Science at the University of West Attica. I find this project to be interesting because I have a passion for calculus and …

---

## [Wishlist: Inline editor information about concurrency](https://forums.swift.org/t/wishlist-inline-editor-information-about-concurrency/82418)

<div class="topic-metadata">

**Author:** [@hbko](https://forums.swift.org/u/hbko)\
**Replies:** 1\
**Last updated:** [September 29, 2025, 2:08pm UTC](https://forums.swift.org/t/wishlist-inline-editor-information-about-concurrency/82418 "2025-09-29T14:08:38Z")

</div>

A recent thread on Mastodon with @mattie prompted me to put this into a longer form: Context With Xcode 26, we have some great tools to profile and detect concurrency issues which may be affecting an app’s performance a…

---

## [Swift code formatting that respects operator precedence - how to get swiftinterfaces of dependencies?](https://forums.swift.org/t/swift-code-formatting-that-respects-operator-precedence-how-to-get-swiftinterfaces-of-dependencies/82410)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 0\
**Last updated:** [September 28, 2025, 6:02pm UTC](https://forums.swift.org/t/swift-code-formatting-that-respects-operator-precedence-how-to-get-swiftinterfaces-of-dependencies/82410 "2025-09-28T18:02:03Z")

</div>

what is the best way to get all the swiftinterfaces imported by a particular source file?

---

## [Prevent using Apple-only frameworks in cross-platform Swift packages](https://forums.swift.org/t/prevent-using-apple-only-frameworks-in-cross-platform-swift-packages/82152)

<div class="topic-metadata">

**Author:** [@bryanboateng](https://forums.swift.org/u/bryanboateng)\
**Replies:** 8\
**Last updated:** [September 16, 2025, 6:47pm UTC](https://forums.swift.org/t/prevent-using-apple-only-frameworks-in-cross-platform-swift-packages/82152 "2025-09-16T18:47:16Z")

</div>

Hello everyone, I'm using the TabularData framework inside a Swift package. I developed the package on macOS, and everything works as expected there. However, when I try to compile the code on Ubuntu, I get the followin…

---

## [\[Pitch\] Replacing the \`update-checkout\` script with \`repo\`](https://forums.swift.org/t/pitch-replacing-the-update-checkout-script-with-repo/81182)

<div class="topic-metadata">

**Author:** [@c\_zablit](https://forums.swift.org/u/c_zablit)\
**Replies:** 9\
**Last updated:** [July 23, 2025, 10:19am UTC](https://forums.swift.org/t/pitch-replacing-the-update-checkout-script-with-repo/81182 "2025-07-23T10:19:56Z")

</div>

I would like to propose to replace the update-checkout script with the repo tool. Motivation From repo's Readme: Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revisio…

---

## [Update Tutorial screenshots for Xcode16](https://forums.swift.org/t/update-tutorial-screenshots-for-xcode16/80425)

<div class="topic-metadata">

**Author:** [@Josephcursio](https://forums.swift.org/u/Josephcursio)\
**Replies:** 3\
**Last updated:** [June 14, 2025, 6:01pm UTC](https://forums.swift.org/t/update-tutorial-screenshots-for-xcode16/80425 "2025-06-14T18:01:28Z")

</div>

The SwiftSyntax Tutorial contains screenshots from xcode 15, and its user interface has since changed. https://swiftpackageindex.com/swiftlang/swift-syntax/601.0.1/tutorials/swiftsyntax/swiftsyntax-by-example Step 1: p…

---

## [Usability of \`swiftly\` on CI](https://forums.swift.org/t/usability-of-swiftly-on-ci/80133)

<div class="topic-metadata">

**Author:** [@Geordie\_J](https://forums.swift.org/u/Geordie_J)\
**Replies:** 5\
**Last updated:** [May 26, 2025, 6:37pm UTC](https://forums.swift.org/t/usability-of-swiftly-on-ci/80133 "2025-05-26T18:37:17Z")

</div>

I was very happy to see the release of swiftly to improve the consistency of toolchains and developer environments. Unfortunately, in adopting it, we've run into considerable headaches with all of our CI environments – e…

---

## [Scripting in Swift and sharing reusable code across scripts via a module - A simple solution for CI](https://forums.swift.org/t/scripting-in-swift-and-sharing-reusable-code-across-scripts-via-a-module-a-simple-solution-for-ci/79444)

<div class="topic-metadata">

**Author:** [@Gero](https://forums.swift.org/u/Gero)\
**Replies:** 0\
**Last updated:** [April 22, 2025, 2:22pm UTC](https://forums.swift.org/t/scripting-in-swift-and-sharing-reusable-code-across-scripts-via-a-module-a-simple-solution-for-ci/79444 "2025-04-22T14:22:18Z")

</div>

(Apologies in advance if the chosen category is unfit, please move if needed :smile:) While investigating the possibilities of scripting in swift (specifically to run scripts on Xcode Cloud) I encountered the usual prob…

---

## [Surfacing educational notes for compiler errors](https://forums.swift.org/t/surfacing-educational-notes-for-compiler-errors/78023)

<div class="topic-metadata">

**Author:** [@hborla](https://forums.swift.org/u/hborla)\
**Replies:** 16\
**Last updated:** [March 4, 2025, 5:41pm UTC](https://forums.swift.org/t/surfacing-educational-notes-for-compiler-errors/78023 "2025-03-04T17:41:44Z")

</div>

@Joseph\_Heck had some good questions about surfacing educational notes in another thread. I thought I'd answer them in a new discussion thread because it's a slightly different topic from the original one. The educatio…

---

## [Github Copilot for Swift?](https://forums.swift.org/t/github-copilot-for-swift/59790)

<div class="topic-metadata">

**Author:** [@David\_Ungar2](https://forums.swift.org/u/David_Ungar2)\
**Replies:** 3\
**Last updated:** [August 21, 2022, 8:47pm UTC](https://forums.swift.org/t/github-copilot-for-swift/59790 "2022-08-21T20:47:47Z")

</div>

Just read a wonderfully snarky but impressive essay on Github's copilot. Copilot snark AFAICT, though, it doesn't do Swift (yet?). Anyone out there thinking about this?

---

## [Getting an 'Invalid typeref' error from swift-reflection-dump](https://forums.swift.org/t/getting-an-invalid-typeref-error-from-swift-reflection-dump/77394)

<div class="topic-metadata">

**Author:** [@pookjw](https://forums.swift.org/u/pookjw)\
**Replies:** 5\
**Last updated:** [January 23, 2025, 2:51am UTC](https://forums.swift.org/t/getting-an-invalid-typeref-error-from-swift-reflection-dump/77394 "2025-01-23T02:51:02Z")

</div>

I built swift-reflection-dump using swift-6.0.3-RELEASE to dump a SwiftUICore binary, but I'm getting an 'Invalid typeref' error from output. How can I resolve this? /Volumes/Untitled/build/Ninja-RelWithDebInfoAssert/s…

---

## [Increase Swift Build Parallelism on Slow Files](https://forums.swift.org/t/increase-swift-build-parallelism-on-slow-files/76201)

<div class="topic-metadata">

**Author:** [@gestrich](https://forums.swift.org/u/gestrich)\
**Replies:** 0\
**Last updated:** [November 24, 2024, 9:32pm UTC](https://forums.swift.org/t/increase-swift-build-parallelism-on-slow-files/76201 "2024-11-24T21:32:45Z")

</div>

I’m working with a Swift package that relies heavily on a library with numerous macros (uses TCA). The package must fully compile before the main app can start building. However, the build timeline shows inefficiencies: …

---

## [SwiftSyntax Builds for x86 on ARM](https://forums.swift.org/t/swiftsyntax-builds-for-x86-on-arm/76067)

<div class="topic-metadata">

**Author:** [@gestrich](https://forums.swift.org/u/gestrich)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 12:56pm UTC](https://forums.swift.org/t/swiftsyntax-builds-for-x86-on-arm/76067 "2024-11-18T12:56:55Z")

</div>

I have an iOS project that uses Swift macros. On my new MacBook Pro (ARM), I notice that it builds for both x86 and ARM. There is no need for x86 in this process. You can reproduce this issue with a new simple project t…

---

## [\[GSoC-2024\] SwiftLexicalLookup - a new lexical name lookup library](https://forums.swift.org/t/gsoc-2024-swiftlexicallookup-a-new-lexical-name-lookup-library/75889)

<div class="topic-metadata">

**Author:** [@MAJKFL](https://forums.swift.org/u/MAJKFL)\
**Replies:** 4\
**Last updated:** [November 15, 2024, 9:52pm UTC](https://forums.swift.org/t/gsoc-2024-swiftlexicallookup-a-new-lexical-name-lookup-library/75889 "2024-11-15T21:52:19Z")

</div>

Hi everyone, I'm Jakub, and this summer during GSoC, I've worked with @Douglas\_Gregor on a new swift-syntax library: SwiftLexicalLookup. It consists of various lexical queries, answering questions like "Where is an erro…

---

## [How do I test generated syntax against expected string in swift-syntax version 600?](https://forums.swift.org/t/how-do-i-test-generated-syntax-against-expected-string-in-swift-syntax-version-600/75450)

<div class="topic-metadata">

**Author:** [@DJBen](https://forums.swift.org/u/DJBen)\
**Replies:** 3\
**Last updated:** [October 25, 2024, 6:49pm UTC](https://forums.swift.org/t/how-do-i-test-generated-syntax-against-expected-string-in-swift-syntax-version-600/75450 "2024-10-25T18:49:38Z")

</div>

I have CLI that codegen using swift-syntax. In swift-syntax 509 version, one can import the internal testing helper library and do this - it ought to generated a pretty-printed diff, nicer to compare large amount of stri…

[Next page](https://forums.swift.org/c/development/tooling/39.md?page=1)
