It seems, per [Preview] Swift-Syntax Prebuilts for Macros , that Swift-Syntax Prebuilts are expressly intended to allow uses for macros. If an iOS library depends on Swift-Syntax for doing things at run-time, then it seems the toolchain will ignore the pre-built and build Swift-Syntax from source.
In my case, the run-time use is in service of unit tests (specifically, pointfreeco/swift-macro-testing), and does not run on users' devices.
I believe this is related to Prebuilts for all host targets by dschaefer2 · Pull Request #9905 · swiftlang/swift-package-manager · GitHub , but not exactly the same thing. That PR says "Add support for prebuilts for all targets that build for host." But I think that would exclude iOS, right?[1]
- Am I correct that the above PR is related but not exactly the same as my issue?
- Is the issue I'm raising here, about including prebuilts for iOS (at least simulators, if not devices), something that…
- …is supposed to be supported now?
- …is intended to be supported in the future?
I can supply a reproducing project if anything is unclear, or if I'm missing some nuance, but I wanted to get a high-level vibe check first.
(Edit: removed a claim about which things use the prebuilts because I think I had it wrong, but the overall question still stands.)
Unless you're doing this all in the context of Swift Playgrounds or a hypothetical Xcode for iPad, I guess, but I'm just talking about using Xcode on macOS to build iOS apps. ↩︎