610.0.1 binary frameworks for https://github.com/swiftlang/swift-syntax
Status 9/5/25: Rebuilt taking the above tag of the swift-syntax repo using Xcode 15.4 and seems to be working quite well using all Xcodes 15-16. You would now normally use the pre-clonned and renamed repo https://github.com/johnno1962/swift-syntax directly as described in the updated README.md there.
© https://xkcd.com/303/ - I compile swift-syntax so you don't have to.
This is a Swift Package containing precompiled binary frameworks of the main modules of the swift-syntax project. It is intended this can be packaged up and used in place of the swift-syntax source repo by Swift Macro projects to avoid this problem people have experienced It operates by overriding the swift-syntax source repo pulled in by your macros by dragging it onto your project as you would to work on a Swift package as is documented here.
You can also fork this repo on github, renaming your fork to swift-syntax and use it as a network SPM dependency but it seems SwiftUI Xcode previews for Mac apps don't work in that configuration.
To use, build your project (and view any previews you would like to view), then clone this repo, renaming the InstantSyntax directory to swift-syntax.
git clone https://github.com/johnno1962/InstantSyntax -b main --single-branch swift-syntax
Now, drag this swift-syntax
clone onto the top level of your project
that uses macros. This binary distribution should then take the place
of the swift-syntax source repo in the side bar in all macro packages.
If you still experience problems involving "duplicate copy commands being generated" when you try to build, try closing and reopening your project.
Use package_syntax.sh if you would like to rebuild from Apple's source. A huge thanks to repo https://github.com/swift-precompiled/swift-syntax which showed it was possible package static libraries in .xcframeworks.