Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
ff03a10
docs: propose the Tuist development workspace
Mx-Iris Nov 20, 2026
544e55c
feat: add the Tuist development workspace
Mx-Iris Nov 20, 2026
ee95c00
fix: build the Tuist workspace's swift-section for macOS 12
Mx-Iris Nov 20, 2026
a5e9ae4
fix: build the Tuist workspace's package tests for macOS 14
Mx-Iris Nov 20, 2026
4fac4ba
fix: give the hand-written Tuist targets MachOSwiftSection's package …
Mx-Iris Nov 20, 2026
521d41b
fix: point the Tuist workspace's testing-support libraries at Testing…
Mx-Iris Nov 20, 2026
2e52588
docs: add the Tuist development workspace guide; build and test take …
Mx-Iris Nov 20, 2026
8bce493
fix: load SwiftSymbolsRegistration whole in the Tuist workspace's links
Mx-Iris Nov 20, 2026
7d37be7
fix: link the Tuist workspace's tests and executable with -ObjC
Mx-Iris Nov 20, 2026
6ed0e60
fix: raise only the test targets of packages declaring less than macO…
Mx-Iris Nov 20, 2026
ca9733e
fix: run the Tuist test schemes without Xcode's runtime checkers; nam…
Mx-Iris Nov 20, 2026
7861e59
docs: record the Tuist test schemes' runtime checkers and the tool's …
Mx-Iris Nov 20, 2026
5c73a64
docs: record the Tuist workspace's local-mode run and cache timing; m…
Mx-Iris Nov 20, 2026
73c9ccb
docs: land the Tuist development workspace as proposal 0099
Mx-Iris Nov 20, 2026
a84c83e
fix: let a static-archive link load the Swift symbol language registr…
Mx-Iris Nov 20, 2026
56205ab
docs: record the static-archive link verification of the registration…
Mx-Iris Nov 20, 2026
a361427
Merge branch 'feature/registration-link-anchor' into next
Mx-Iris Nov 20, 2026
7228547
docs: propose Swift 6 mode for MachOKit and three upcoming features a…
Mx-Iris Nov 20, 2026
63ef0b3
fix: import the modules three lookups rely on and spell Swift.Error w…
Mx-Iris Nov 20, 2026
0390b1b
refactor: apply the migration fix-its for ExistentialAny, MemberImpor…
Mx-Iris Nov 20, 2026
0b4340d
build: enable ExistentialAny, MemberImportVisibility and InferIsolate…
Mx-Iris Nov 20, 2026
6db3711
docs: propose sharing the generic test support with MachOKitExtensions
Mx-Iris Nov 20, 2026
c6ce054
fix: spell an optional existential as (any P)? so Swift 6.3 accepts it
Mx-Iris Nov 20, 2026
be27b6f
docs: add one-closure cross-reader overloads and the Tuist plugin pat…
Mx-Iris Nov 20, 2026
03e0082
test: spell Swift.Error in the tests the migration made import Semantic
Mx-Iris Nov 20, 2026
dd258e9
docs: propose a FixtureSuite macro for fixture suite headers
Mx-Iris Nov 20, 2026
7d00c05
docs: record where the implementation of swift6-mode-and-upcoming-fea…
Mx-Iris Nov 20, 2026
5f4b25a
docs: accept the FixtureSuite macro proposal
Mx-Iris Nov 20, 2026
e086c11
feat: generate a fixture suite's FixtureSuite requirements with a mac…
Mx-Iris Nov 20, 2026
ae0cb4e
test: declare the fixture suites with @FixtureSuite
Mx-Iris Nov 20, 2026
bd78907
Merge branch 'next' into feature/swift6-mode-and-upcoming-features
Mx-Iris Nov 20, 2026
8b85908
docs: record the verification of swift6-mode-and-upcoming-features an…
Mx-Iris Nov 20, 2026
a12e942
docs: record the FixtureSuite macro's verification
Mx-Iris Nov 20, 2026
30d9b7d
docs: land the FixtureSuite macro as proposal 0100, and number ledger…
Mx-Iris Nov 20, 2026
50b01e9
Merge branch 'next' into feature/swift6-mode-and-upcoming-features
Mx-Iris Nov 20, 2026
7e2fbad
test: import SwiftSyntaxBuilder in the FixtureSuite macro tests
Mx-Iris Nov 20, 2026
b6da83c
docs: land the Swift 6 and upcoming features proposal as 0101, and nu…
Mx-Iris Nov 20, 2026
153aef4
Merge branch 'feature/swift6-mode-and-upcoming-features' into next
Mx-Iris Nov 20, 2026
1d51a7c
docs: start the shared Mach-O testing support proposal
Mx-Iris Nov 20, 2026
02e7f5b
docs: record the shared Mach-O testing support's first two steps
Mx-Iris Nov 20, 2026
50d0b80
docs: record the shared Mach-O testing support's MachOKitExtensions part
Mx-Iris Nov 20, 2026
db3fb8c
docs: bring the shared Mach-O testing support proposal up to what was…
Mx-Iris Nov 20, 2026
cdd7a16
docs: record the fixture compiler's lock in the shared Mach-O testing…
Mx-Iris Nov 20, 2026
1c4aed5
fix(cross-reference-analysis): keep the references of a function belo…
Mx-Iris Nov 20, 2026
f313293
Merge branch 'fix/reference-index-functions-below-text' into next
Mx-Iris Nov 20, 2026
3a2a20e
docs: number ledger section 147 for the reference index fix
Mx-Iris Nov 20, 2026
a8db2f1
docs: record MachOKitExtensions' move to Mutex and off Linux
Mx-Iris Nov 20, 2026
c7a10f6
docs: follow MachOKitExtensions' grouped source paths in the shared t…
Mx-Iris Nov 20, 2026
6a0578d
docs: add the multiline type formatting proposal (Accepted)
Mx-Iris Nov 21, 2026
4a6fe0e
feat(swift-declaration-rendering): add MultilineTypeFormatting with i…
Mx-Iris Nov 21, 2026
0e4efed
feat(swift-declaration-rendering): parse a long line into a bracket tree
Mx-Iris Nov 21, 2026
4878cc9
feat(swift-declaration-rendering): break long types at their brackets
Mx-Iris Nov 21, 2026
e06d180
test: pin what multiline type formatting keeps
Mx-Iris Nov 21, 2026
912684b
docs: record that the shared testing support's MachOKitExtensions par…
Mx-Iris Nov 21, 2026
3dba530
feat(swift-section-kit): format long types in dump and interface on r…
Mx-Iris Nov 21, 2026
74fa78e
docs: note what the fixture compiler still lacks for MachOSwiftSectio…
Mx-Iris Nov 21, 2026
18e34ce
feat(swift-section): add --multiline-types and --maximum-line-width t…
Mx-Iris Nov 21, 2026
1597660
docs: record MachOKitExtensions 3.2.0 in the shared testing support p…
Mx-Iris Nov 21, 2026
ff2eeb2
fix(swift-declaration-rendering): treat angle brackets holding requir…
Mx-Iris Nov 21, 2026
5070092
Merge remote-tracking branch 'origin/next' into feature/shared-macho-…
Mx-Iris Nov 21, 2026
d425338
docs: document multiline type formatting
Mx-Iris Nov 21, 2026
3e56df6
Merge branch 'feature/multiline-type-formatting' into next
Mx-Iris Nov 21, 2026
64a3336
test: build the test support on MachOKitExtensions' MachOFixtureSuppo…
Mx-Iris Nov 21, 2026
a426f94
test: compile fixtures and pick slices through MachOKitExtensions' sh…
Mx-Iris Nov 21, 2026
25c4515
docs: land the multiline type formatting proposal as 0102, and number…
Mx-Iris Nov 21, 2026
4eec2e5
test: run each cross-reader read through one closure on the paired su…
Mx-Iris Nov 21, 2026
20ae2b2
test: read this Mac's cache through the one shared opening, and let t…
Mx-Iris Nov 21, 2026
5a80bde
build: leave tests of a macro target out of the Tuist workspace, and …
Mx-Iris Nov 21, 2026
c8bfa4b
Merge remote-tracking branch 'origin/next' into feature/shared-macho-…
Mx-Iris Nov 21, 2026
41ce309
docs: accept the proposal to bound the cross-reference tests' paralle…
Mx-Iris Nov 21, 2026
e9be8de
test: give the cross-reference tests' parallel scans one process-wide…
Mx-Iris Nov 21, 2026
a71e98a
test: run the four whole-cache scans through the shared budget, and k…
Mx-Iris Nov 21, 2026
9a66ee1
build: compile the cross-reference scan's two hottest modules optimiz…
Mx-Iris Nov 21, 2026
3487469
docs: note that the Tuist mapping's macro rule is synced to the upstr…
Mx-Iris Nov 21, 2026
9b6f123
docs: record the shared scan budget and the Tuist workspace's optimiz…
Mx-Iris Nov 21, 2026
0887dff
docs: record the full test run of the cross-reference test scan load …
Mx-Iris Nov 21, 2026
7273bd9
Merge branch 'feature/cross-reference-test-scan-load' into next
Mx-Iris Nov 21, 2026
b42118c
docs: record the decision to leave Swift Testing's own parallelism alone
Mx-Iris Nov 21, 2026
fccd37d
Merge branch 'feature/cross-reference-test-scan-load' into next
Mx-Iris Nov 21, 2026
1c58d1c
docs: land proposal 0103, cross-reference test scan load, as Implemen…
Mx-Iris Nov 21, 2026
99b9248
docs: mark proposal 0103 Implemented, point the indexes and links at …
Mx-Iris Nov 21, 2026
c65afab
Merge remote-tracking branch 'origin/next' into feature/shared-macho-…
Mx-Iris Nov 21, 2026
f9ff01c
docs: mark proposal 0104 Implemented, point the indexes and links at …
Mx-Iris Nov 21, 2026
23dc3e3
Merge branch 'feature/shared-macho-testing-support' into next
Mx-Iris Nov 21, 2026
7e9845a
fix: keep the Swift symbol language's registration function linkable …
Mx-Iris Nov 21, 2026
e80720d
build: give MachOSwiftSectionC an umbrella header
Mx-Iris Nov 23, 2026
ace5109
docs: accept the swift-type-indexing package proposal
Mx-Iris Nov 23, 2026
ad4b19e
docs: record the swift-type-indexing package's first three steps
Mx-Iris Nov 23, 2026
b68aff9
Move TypeIndexing to swift-type-indexing; keep the printer's adapter
Mx-Iris Nov 23, 2026
57db0f9
Add swift-section objc interface --mark-sdk-swift-names
Mx-Iris Nov 23, 2026
2564665
docs: record how RuntimeViewer took the type index, and the verification
Mx-Iris Nov 23, 2026
2a341bb
Merge branch 'feature/swift-type-indexing-package' into next
Mx-Iris Nov 23, 2026
86a5d39
Colour macros in swift-section; record the macro colour fix in the pr…
Mx-Iris Nov 23, 2026
f9e3e13
docs: record why SourceKitService grew to 80 GB and the fix in swift-…
Mx-Iris Nov 23, 2026
bd388bf
docs: propose spelling C-imported type names one way, Swift or C
Mx-Iris Nov 24, 2026
1e49050
WIP: spell C-imported type names one way, Swift or C
Mx-Iris Nov 24, 2026
7e3d613
WIP: ask the module resolvers one after the other for a declared C-im…
Mx-Iris Nov 24, 2026
3e7dc05
WIP: separate the names in a C-imported type name kind with a bar
Mx-Iris Nov 24, 2026
98079ba
WIP: ask no resolver for a C-spelled declaration unless its names are…
Mx-Iris Nov 24, 2026
6b6bafe
docs: describe --c-imported-type-name-spelling and the Swift names of…
Mx-Iris Nov 24, 2026
6c06d2d
docs: record the C-imported type name spelling's progress and the dec…
Mx-Iris Nov 24, 2026
139bd58
Merge branch 'feature/c-imported-type-name-spelling' into next
Mx-Iris Nov 24, 2026
71672f6
docs: the C-imported type name spelling is implemented, waiting for t…
Mx-Iris Nov 24, 2026
8ebc9e7
Merge branch 'feature/c-imported-type-name-spelling' into next
Mx-Iris Nov 24, 2026
60eed1d
docs: RuntimeViewer shows a C-imported type's other name in a clickab…
Mx-Iris Nov 24, 2026
e3b0fda
Merge branch 'feature/c-imported-type-name-spelling' into next
Mx-Iris Nov 24, 2026
fd238c8
build: take MachOObjCSection 0.8.209, swift-semantic-string 0.7.0 and…
Mx-Iris Nov 24, 2026
f7d62d0
docs: land the swift-type-indexing package and the C-imported type na…
Mx-Iris Nov 24, 2026
05112d2
docs: accept the proposal to print a Swift type the SDK moved under t…
Mx-Iris Nov 25, 2026
ce7f395
Print a Swift type the SDK moved under the module that declares it now
Mx-Iris Nov 25, 2026
a1f3cbb
Print an extension of a moved Swift type under the module declaring i…
Mx-Iris Nov 25, 2026
e1e5277
Resolve moved Swift type modules through the SDK type-name provider
Mx-Iris Nov 25, 2026
d82d7b9
Add interface --resolve-moved-type-modules
Mx-Iris Nov 25, 2026
c09208f
Import Semantic and take the one interface product directly in the mo…
Mx-Iris Nov 25, 2026
a261058
docs: document interface --resolve-moved-type-modules and moved Swift…
Mx-Iris Nov 25, 2026
b87fd8a
docs: record the full-suite run and the finished implementation in th…
Mx-Iris Nov 25, 2026
b5235fa
build: take swift-type-indexing 0.2.0, the release answering moved Sw…
Mx-Iris Nov 25, 2026
adccee7
Merge branch 'feature/moved-swift-type-modules' into next
Mx-Iris Nov 25, 2026
1e6ee2a
docs: accept the proposal to attribute private CF types to the image …
Mx-Iris Nov 25, 2026
a9ebf0b
Add CFDeclaredTypeNames, the CF types an image exports a GetTypeID for
Mx-Iris Nov 25, 2026
d9d8327
Register CFDeclaredTypeNames for the root and each direct dependency
Mx-Iris Nov 25, 2026
6909fad
Spell Swift.Error in the private CF type module test, which imports S…
Mx-Iris Nov 25, 2026
e72a341
Register one source per dependency image, reading both its ObjC and C…
Mx-Iris Nov 25, 2026
35a3758
docs: record ImageDeclaredTypeNames and the finished second step in t…
Mx-Iris Nov 25, 2026
403cd9d
docs: say --resolve-c-module-names attributes a private CF type to th…
Mx-Iris Nov 25, 2026
6b74b73
Pin that a bridged CF type without a GetTypeID function keeps its bar…
Mx-Iris Nov 25, 2026
b63d180
Test that a GetTypeID export does not claim a C typedef that is no CF…
Mx-Iris Nov 25, 2026
e8c2ccc
Let a GetTypeID export claim only the CF types the root's foreign cla…
Mx-Iris Nov 25, 2026
418dea5
docs: say a GetTypeID export only locates a CF type the binary's own …
Mx-Iris Nov 25, 2026
2ebcbb0
docs: record the foreign-descriptor gate and the system-image results…
Mx-Iris Nov 25, 2026
26ee901
docs: record the green full suite and the finished implementation in …
Mx-Iris Nov 25, 2026
16decb9
Merge branch 'feature/private-cf-type-modules' into next
Mx-Iris Nov 25, 2026
48132f7
docs: mark proposal 0107 Implemented, point the indexes and links at …
Mx-Iris Nov 25, 2026
e060da1
docs: land the private CF type modules proposal as 0108 and number it…
Mx-Iris Nov 25, 2026
2ad53e6
feat: print a C-imported type its descriptor names under its C name b…
Mx-Iris Nov 25, 2026
5574e72
feat: spell the offline expanded field offset tree's types the way th…
Mx-Iris Nov 25, 2026
765316e
feat: spell the in-process expanded field offset tree's types the way…
Mx-Iris Nov 25, 2026
edf3f78
docs: record the self-review verdicts, the measurements and the propo…
Mx-Iris Nov 25, 2026
40f7814
Merge branch 'feature/consistent-c-imported-type-spelling' into next
Mx-Iris Nov 26, 2026
c575a7b
docs: propose unifying the evolution integration suites
Mx-Iris Nov 26, 2026
2c08234
test(IntegrationTests): add the shared evolution axis and the four ev…
Mx-Iris Nov 26, 2026
cd2901d
test(IntegrationTests): run every evolution output from one set of ax…
Mx-Iris Nov 26, 2026
74ee572
docs: record the evolution suite merge in the ledger and the proposal
Mx-Iris Nov 26, 2026
5688095
Merge branch 'feature/unify-evolution-integration-suites' into next
Mx-Iris Nov 26, 2026
6330ef3
docs: land consistent C-imported type spelling as proposal 0109 and t…
Mx-Iris Nov 26, 2026
db5328a
docs: propose unifying the diff and interface integration suites
Mx-Iris Nov 26, 2026
94de6c3
test(IntegrationTests): move the dump scaffolding and version axes in…
Mx-Iris Nov 26, 2026
8f2b258
test(IntegrationTests): import the toolbox modules the version axis f…
Mx-Iris Nov 26, 2026
0037cf7
test(IntegrationTests): run the single-version interfaces through one…
Mx-Iris Nov 26, 2026
7ad356f
test(IntegrationTests): run the diffs over the shared version axes
Mx-Iris Nov 26, 2026
ece6445
docs: record the diff and interface suite merge in the ledger and the…
Mx-Iris Nov 26, 2026
85e91fe
test(IntegrationTests): read AttributeGraph with C-imported types and…
Mx-Iris Nov 26, 2026
7fd4d0e
chore(project): let Xcode autocreate scheme contexts in both workspaces
Mx-Iris Nov 26, 2026
de1878c
Merge branch 'feature/unify-diff-and-interface-integration-suites' in…
Mx-Iris Nov 26, 2026
2db688a
docs: land the diff and interface suite merge as proposal 0111
Mx-Iris Nov 26, 2026
8ffdaf8
Add the skeleton of the ObjC ivar type recovery
Mx-Iris Nov 26, 2026
c07d6e0
Make the AdaptiveTransitionWidget fixture class compile
Mx-Iris Nov 26, 2026
a9284c4
Pin what the stripped fixture class keeps of its ivars
Mx-Iris Nov 26, 2026
5c413c2
docs: accept the cross-reference recall gaps proposal and record the …
Mx-Iris Nov 26, 2026
5833eb9
Expect a weak property's ivar to say ?
Mx-Iris Nov 26, 2026
d84944a
Recover a stripped stored property's type from a complete ivar encoding
Mx-Iris Nov 26, 2026
efd6c54
Call the encoding parser by its name
Mx-Iris Nov 26, 2026
42d1c48
Recover bridged and weak stored properties from their Objective-C pro…
Mx-Iris Nov 26, 2026
ed8c5a0
Spell a recovered C primitive type through the C type replacements
Mx-Iris Nov 26, 2026
1ffe58b
Print the recovered stored property types in the dump too
Mx-Iris Nov 26, 2026
c31ecda
Trust a ? ivar's Objective-C property only for a bridged class or a b…
Mx-Iris Nov 26, 2026
d16dfcf
docs: correct the ivar type recovery proposal's log and change map
Mx-Iris Nov 26, 2026
807102c
docs: add the web page of the ivar type recovery proposal
Mx-Iris Nov 26, 2026
b8a383d
feat(cross-reference-analysis): query a Swift type from the CLI, reco…
Mx-Iris Nov 26, 2026
c125ad2
test(IntegrationTests): split the inspection dump suites by source an…
Mx-Iris Nov 26, 2026
7ef1b4f
build: add the cross-reference recall benchmark, and import MachOKit …
Mx-Iris Nov 26, 2026
086a8a2
Merge branch 'feature/source-based-inspection-dump-suites' into next
Mx-Iris Nov 26, 2026
1e0726b
Merge branch 'feature/objc-ivar-type-recovery' into next
Mx-Iris Nov 26, 2026
88e9c53
test(IntegrationTests): give each version axis base class its own file
Mx-Iris Nov 26, 2026
1b64e78
Merge branch 'feature/source-based-inspection-dump-suites' into next
Mx-Iris Nov 26, 2026
e5b5568
docs: document refs --type, selector and function address references;…
Mx-Iris Nov 26, 2026
aed3353
docs: land the ObjC ivar type recovery proposal as 0112
Mx-Iris Nov 26, 2026
1783131
docs: land the source-based inspection dump suites as ledger section 159
Mx-Iris Nov 26, 2026
758a7e7
docs: record the recall after the fixes, 514 of 527, and the proposal…
Mx-Iris Nov 26, 2026
9335ebc
docs: record the throughput of the recall fixes and close the impleme…
Mx-Iris Nov 26, 2026
70a9838
Merge branch 'feature/cross-reference-recall-gaps' into next
Mx-Iris Nov 26, 2026
edbf296
docs: land the cross-reference recall fixes as proposal 0113 and ledg…
Mx-Iris Nov 26, 2026
9b736a8
docs: mark proposal 0112's RuntimeViewer follow-up done
Mx-Iris Nov 27, 2026
5b2022c
test: reproduce Objective-C-written categories read as Swift conforma…
Mx-Iris Nov 27, 2026
2a8dbba
test: cover images with and without Swift code, read from the file an…
Mx-Iris Nov 27, 2026
a691446
fix: read no category conformance out of an image no Swift code went …
Mx-Iris Nov 27, 2026
f5f5381
docs: record the verification of the category conformance fix
Mx-Iris Nov 27, 2026
947d532
Merge branch 'fix/objc-written-category-conformances' into next
Mx-Iris Nov 27, 2026
bfd80da
docs: record the 2026-11-29 codebase audit
Mx-Iris Nov 29, 2026
2852aef
test: add CompiledFixtureCopies for stripped and rewritten fixture co…
Mx-Iris Nov 29, 2026
97eb4a3
fix(SwiftLayout): tell same-named private types apart, and bound what…
Mx-Iris Nov 29, 2026
8f96d2d
fix: stop walking a context descriptor's parents that lead back into …
Mx-Iris Nov 29, 2026
3724ec9
fix(SwiftObjCInterop): say what an unowned(unsafe) stored property al…
Mx-Iris Nov 29, 2026
bc69eaf
fix(CrossReferenceAnalysis): read stripped standalone instantiations,…
Mx-Iris Nov 29, 2026
43178fb
docs: record the fixes of the 2026-11-29 codebase audit
Mx-Iris Nov 29, 2026
5e49814
Merge branch 'fix/codebase-audit-2026-11-29' into next
Mx-Iris Nov 29, 2026
7409a98
docs: land the SwiftDeclaration layout and naming proposals as 0114 a…
Mx-Iris Dec 1, 2026
42f93df
docs(plugin): describe refs --ivar and symbolicate --file
Mx-Iris Dec 1, 2026
e804af2
release: 0.28.0
Mx-Iris Dec 1, 2026
a857db4
release: require MachOObjCSection 0.10.102 and record the 0.28.0 release
Mx-Iris Dec 1, 2026
5956656
test(IntegrationTests): leave the diff dump unoptimized for Swift 6.3
Mx-Iris Dec 1, 2026
6a85d4c
test(IntegrationTests): leave the evolution and interface dumps unopt…
Mx-Iris Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
configuration: [debug, release]
env:
MACHO_SWIFT_SECTION_SILENT_TEST: 1
# Quiets `.print()` of MachOKitExtensions' MachOFixtureSupport, which
# reads it at run time.
MACHO_TESTING_SILENT: 1
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
Expand Down
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@ Tests/Projects/SymbolTests/DerivedData
.omc
.swiftpm/xcode/xcshareddata/xcschemes
__pycache__/

# The Tuist development workspace (Documentations/Internal/TuistDevelopment.md): everything
# ./TuistScript.sh and Tuist generate inside the checkout.
/MachOSwiftSection-Tuist.xcworkspace/
/MachOSwiftSection.xcodeproj/
/Derived/
/PrecompiledLibraries/swift-syntax/swift-syntax.xcodeproj/
/PrecompiledLibraries/swift-syntax/Derived/
/PrecompiledLibraries/swift-syntax/.build/
/Tuist/.build/
/Tuist/.build-LocalDependencies/
/Tuist/CommandLine/*.xcodeproj/
/Tuist/CommandLine/Derived/
/Tuist/.local-dependencies
/Tuist/.claimed-checkouts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
<true/>
</dict>
</plist>
19 changes: 12 additions & 7 deletions AGENTS.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion AgentPlugins/swift-section/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swift-section",
"version": "0.26.0",
"version": "0.28.0",
"description": "Teaches coding agents to drive the swift-section CLI: Swift and Objective-C declarations, memory layout and ABI diffs recovered from a Mach-O binary or a dyld shared cache.",
"author": {
"name": "MxIris-Reverse-Engineering",
Expand Down
2 changes: 1 addition & 1 deletion AgentPlugins/swift-section/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swift-section",
"version": "0.26.0",
"version": "0.28.0",
"description": "Teaches coding agents to drive the swift-section CLI: Swift and Objective-C declarations, memory layout and ABI diffs recovered from a Mach-O binary or a dyld shared cache.",
"author": {
"name": "MxIris-Reverse-Engineering",
Expand Down
84 changes: 72 additions & 12 deletions AgentPlugins/swift-section/skills/swift-section-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ Flags added comparatively late, and therefore worth checking: `--emit-header`,
`interface --requirements-on-associated-types` and `--emit-private-source-files`, and from
0.25.0 `objc evolution --interface` / `--emit-available` / `--platform`,
`objc interface --swift`, `interface --no-existential-any` / `dump --disable-existential-any`,
`interface --expand-macros` and the `refs` and `symbolicate` subcommands.
`interface --expand-macros` and the `refs` and `symbolicate` subcommands, and after 0.26.0
`--multiline-types` / `--maximum-line-width` on `dump` and `interface`,
`objc interface --mark-sdk-swift-names`, and `refs --type` / `--type-image` (with `refs`
listing selector references and function address references).
When one is
missing, say so rather than silently producing a weaker answer — the alternative is usually
"upgrade (`brew upgrade swift-section`), or do without that annotation".
Expand All @@ -66,7 +69,7 @@ missing, say so rather than silently producing a weaker answer — the alternati
| How did this API evolve across N OS versions? | `evolution` |
| Reformat the memory-layout comments the two above emit | `transformer` |
| Objective-C headers, IMP addresses, or an Objective-C API diff (0.20.0+, formerly the separate `objc-section` executable) | `objc` — read `references/objc.md` first |
| Who calls this selector / symbol / function, who references this class, ivar or string — across a whole dyld shared cache or an app's files | `refs` — read `references/cross-references.md` first |
| Who calls this selector / symbol / function, who references this class, ivar, string or Swift type — across a whole dyld shared cache or an app's files | `refs` — read `references/cross-references.md` first |
| What is this address: which function and how far into it, a stub and where it leads, a slot and what it holds | `symbolicate` — same reference |

`dump` is the default subcommand: `swift-section <path>` is `swift-section dump <path>`.
Expand Down Expand Up @@ -152,7 +155,20 @@ The single most common mistake. Same underlying comment, different name:
Spelled the same on both: `--emit-type-layout`, `--emit-enum-layout`, `--emit-member-addresses`,
`--emit-vtable-offsets`, `--emit-expanded-field-offsets` (implies the field-offset flag),
`--emit-header`, `--emit-export-status`, `--emit-private-source-files`, `--color-scheme`,
`--output-path`, `--dependency-search-path` (§2).
`--output-path`, `--dependency-search-path` (§2), `--multiline-types`, `--maximum-line-width`.

`--multiline-types` breaks a long type over several lines at its brackets — a SwiftUI view's
`typealias Body = SwiftUI.ModifiedContent<…>` otherwise prints as one line thousands of
characters long. A type whose closing `>` lies past `--maximum-line-width` (default 100; a
line's indentation does not count) puts each argument of every generic with two or more
arguments on a line of its own; a single-argument generic, a tuple, a parameter list or
`[…]` sugar breaks only when something inside it breaks, so a signature's parameter list opens
up around a broken parameter type. A type that fits stays on one line, and so does a line that
is long for any other reason (many parameters, a trailing comment). Off by default. With it on,
a declaration no longer sits on one line: grep for a short name, not a whole one-line type
spelling, and do not feed the output to anything that expects one declaration per line.
`--maximum-line-width` without `--multiline-types` is a usage error. `diff`, `evolution` and
`snapshot` do not take these flags.

`--emit-private-source-files` puts a comment above each declaration whose name carries a
private discriminator, naming the source file the discriminator was derived from:
Expand Down Expand Up @@ -200,8 +216,9 @@ switches).

Only `interface` has: `--exported-only`, `--sort-members-by-offset`,
`--parse-opaque-return-type`, `--show-c-imported-types`, `--resolve-c-module-names`,
`--supplementary-apinotes`, `--infer-objc-overrides`, `--requirements-on-associated-types`,
`--expand-macros`.
`--resolve-moved-type-modules`, `--supplementary-apinotes`, `--c-imported-type-name-spelling`,
`--infer-objc-overrides`,
`--requirements-on-associated-types`, `--expand-macros`.

`--requirements-on-associated-types` changes where a protocol's requirements print, never which:
`associatedtype Body: SwiftUI.View` instead of `protocol View where Self.Body: SwiftUI.View`,
Expand Down Expand Up @@ -335,15 +352,53 @@ swift-section evolution 17.0.json 18.0.json /path/Foo --labels 17.0,18.0,26.0
one as changed. Formats 8 through 12 only ever existed on the development branch, between those
changes.

## 8. `--resolve-c-module-names` (interface, macOS only)

Turns `__C.NSString` into `Foundation.NSString`. Needs macOS 13+ and an Xcode installation, and
the first run per SDK generates module interfaces through sourcekitd — slow once, cached after.
Attribution against a non-macOS binary is limited (it warns and degrades rather than failing).
`--supplementary-apinotes` only does anything alongside it.
## 8. `--resolve-c-module-names` and `--resolve-moved-type-modules` (interface, macOS only)

Turns `__C.NSString` into `Foundation.NSString`, and applies the SDK's Swift renames: a
`SwiftPrivate` type prints with `__` (`UIKit.__UICellConfigurationState`), a `SwiftName` one under
that name (`PencilKit.PKDrawingReference`). Needs macOS 13+ and the binary's SDK in the active
developer directory — Xcode, or the Command Line Tools for macOS and Mac Catalyst binaries. The
first run per SDK generates module interfaces through sourcekitd — slow once (UIKit takes about two
minutes), cached after in `~/Library/Application Support/swift-type-indexing`. Without sourcekitd only
API notes, Objective-C metadata and exported `GetTypeID` functions attribute names. A binary whose SDK
is not installed warns and prints `__C.` unresolved. `--supplementary-apinotes` only does anything
alongside it.

**A private CF type is attributed to the image exporting its `GetTypeID`.** No SDK header declares
`CGSVGDocumentRef`, but CoreSVG exports `CGSVGDocumentGetTypeID`, so SwiftUICore's reference prints
as `CoreSVG.CGSVGDocument`. Only the binary itself and its direct dependencies are read: a type whose
function lives in a re-exported sub-framework (LaunchServices under CoreServices) or a transitive
dependency keeps the bare Swift name. The export only says where a type lives: a name is attributed
this way only when the binary's own metadata shows it is a CF class (a C-imported class descriptor
promoted from a typedef), so a reference with no such descriptor stays `__C.CGSVGDocumentRef`, and a
bridged type nobody exports a `GetTypeID` for keeps its bare name.

**Swift names come first, with or without the SDK.** A C type has two names: its descriptor carries the one Swift code uses, every mangled reference the C one. `interface` prints the Swift one everywhere — declaration, member types, extension headers — when the binary's own descriptor gives it (`AnyWeakAttribute` for `AGWeakAttribute`, `CGColor` for `CGColorRef`), with no module when nothing resolves it and under its module when this flag does. A descriptor with no separate C name says the two names are one, so such a type prints bare too (`AGDescriptionOption`, not `__C.AGDescriptionOption`). `__C.` stays in two cases. The binary has no descriptor for the type, because it passes the type around but never needs its metadata (`__C.AGValueOptions`): nothing in the binary says what Swift calls it, and the image that does carry its descriptor may be one that links this binary, not one it links. Or the descriptor's name may be only the leaf of a member import (`__C.AGTreeValue`, whose descriptor says `TreeValue`; see section 9). `--c-imported-type-name-spelling c-name` prints every C-imported type as the binary mangles it (`struct AGWeakAttribute`, `__C.AGWeakAttribute`) and makes this flag do nothing.

**`interface`'s expanded field-offset comments spell their types the way the declarations do**: the rows under `var base: AnyWeakAttribute` read `identifier (AnyAttribute)`, follow `--c-imported-type-name-spelling`, `--module-selectors` (`Swift::UInt32`) and `--existential-any`, use `?` / `[…]` sugar, and print a private type without its discriminator, as its declaration does. `dump`'s rows keep the plain demangled spelling (`__C.AGAttribute`, `Swift.UInt32`, `(Foo in _ABC…)`), so the two commands' comments differ for the same field. A row whose type comes from a dependency image is spelled with the root binary's descriptors only, so it can keep `__C.` where that dependency's own interface prints a bare name.

**`--resolve-moved-type-modules` is the Swift-type counterpart, and independent of it.** When the
SDK moves a Swift type to another module it marks the declaration `@_originallyDefinedIn`, and the
compiler keeps mangling the type — and every type nested in it — under the old module, so the binary
only ever says `CoreGraphics.CGFloat` and `SwiftUI.View`. This flag prints them as the SDK declares
them, `CoreFoundation.CGFloat` and `SwiftUICore.View`, references, module selectors and extension
headers alike. It reads the SDK's textual `.swiftinterface` files (about two seconds, no sourcekitd),
and only rewrites a type the binary's own SDK (`LC_BUILD_VERSION`'s `sdk`) already had moved: the
macOS 14 SwiftUI keeps `SwiftUI.View`, since `View` moved in macOS 15. Off by default, because the
result depends on the SDK installed on the machine. Both spellings compile — the old module
re-exports the new one — so the `import` lines are left as they are.

`objc interface --mark-sdk-swift-names` reads the same SDK's API notes for an Objective-C header:
the class's or protocol's `NS_SWIFT_NAME(...)` / `NS_REFINED_FOR_SWIFT` on a line above
`@interface`, a member's before its `;`. API notes only, about two seconds, no sourcekitd.

## 9. Reading the output: things that look like bugs and are not

- **A C type imported as a member keeps its C name** (`struct NSAttributedStringKey`,
`__C.NSAttributedStringKey`) unless `--resolve-c-module-names` spells it
(`Foundation.NSAttributedString.Key`): its descriptor stores only the leaf (`Key`), and nothing
in the binary names the type it belongs to. A top-level rename shaped the same way
(`NSDecimal` → `Decimal`) keeps its C name too.
- **`// not exported`** is an export-trie fact, not an access-level claim. A missing entry
means "not statically callable from outside this image", which is not the same as `internal`.
- **`… is declared in Enabled.swift of module SwiftUICore`** above a SwiftUI declaration is not a
Expand Down Expand Up @@ -414,7 +469,12 @@ Attribution against a non-macOS binary is limited (it warns and degrades rather
protocol has no Swift conformance record. An extension in the class's own module is folded
into the class there, so its conformances show in the header too, while
`extension __C.NSView: M.P {}` is an extension of another module's class (its category).
Neither shows in `diff`, `evolution` or a snapshot.
Neither shows in `diff`, `evolution` or a snapshot. An image no Swift code went into (its
`objc_image_info` carries no Swift version, as in every framework from before Swift) prints
no such extension. In an image with Swift, the categories its Objective-C code declares
print the same way: the linker merges the categories of one class, so
`extension __C.NSString: __C.NSPasteboardWriting, …` from AppKit can list protocols the
Objective-C headers adopt. Check a header before reading one as Swift's.
- **`@objc(Name)` above a class** is the name the Objective-C runtime knows it by, and matters
even when it equals the Swift name (`@objc(NSScrollPocket) class NSScrollPocket`): without it
the runtime name would be the `_TtC…` mangling. That is also the class name `objc` headers
Expand Down
Loading
Loading