Open sliemeobn opened 5 months ago
I'm experiencing a crash with an identical stack trace. In my case, the crash occurs when building an Xcode project from the command line using xcodebuild, but not when building the same project inside Xcode, and so I came here to report the bug instead of using Apple's bug reporter. I'm using Apple Swift version 5.10 (swiftlang-5.10.0.13, clang-1500.3.9.4) as provided by Xcode 15.4, running on macOS Sonoma 14.5.
The project is large and has a fair amount of proprietary code, so I haven't yet been able to reduce the problem to a smaller test case. But I hope the following information may be useful:
The crash started occurring when I updated my project in response to a recent reorganization of the SwiftSpellbook external packages. When the project initially updated packages to version 1.0.0, I got build errors from both Xcode and xcodebuild of the form
error: Multiple commands produce '...SpellbookMac_67AA899B933055C8_PackageProduct.framework/Versions/A'
and
warning: duplicate output file '...SpellbookFoundation_-6AC965FA4921D22B_PackageProduct.framework/Versions/A' on task: Copy...
(I understand Xcode issues aren't handled here, but I'm trying to explain how I arrived at the compiler crash).
I attempted to work around this by including the SpellbookLaunchctl package in a common framework already used by the targets in question, and re-exporting the package from that framework using @_exported
. This seemed to fix the build problem within Xcode, but then I observed the compiler crash when building from the terminal.
Description
I ran into this when setting up a benchmarks package in this repo.
Building the target with
swift build -c release
works, but using theswift package benchmark
plugin command fails with a build error (full command below)Reproduction
Bechmarks package in this repo Run
swift package benchmark
Stack dump