Open kuglee opened 5 months ago
cc @DougGregor
I have bumped into this issue too.
With this environment
Run swift --version Apple Swift version 5.10-dev (LLVM 57d4e30156f5d21, Swift c05dd0b9c7ce6bc) Target: arm64-apple-macosx14.0
And this console output,
[548/615] Compiling ComposableArchitecture ReducerBuilder.swift
error: compile command failed due to signal 6 (use -v to see invocation)
Assertion failed: (LocalDiscriminator == InvalidDiscriminator && "LocalDiscriminator is set multiple times"), function setLocalDiscriminator, file Decl.cpp, line 3039.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/bin/swift-frontend -frontend -c /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/CaseReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/Dismiss.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/IsPresented.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effect.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Animation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Cancellation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Debounce.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/EffectActions.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Publisher.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/TaskResult.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Throttle.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/AreOrderedSetsDuplicates.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Binding+IsPresent.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Box.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Create.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/CurrentValueRelay.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Debug.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Deprecations.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/EphemeralState.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Exports.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Locking.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Logger.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/NavigationID.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/OpenExistential.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/PresentationID.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/ReturningLastNonNilValue.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/RuntimeWarnings.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/StackIDGenerator.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/TypeName.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Macros.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Alert+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Binding+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/IdentifiedArray+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ObservableState.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ObservationStateRegistrar.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/Store+Observation.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Observation/ViewAction.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/ReducerBuilder.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/BindingReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/CombineReducers.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DebugReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DependencyKeyWritingReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/EmptyReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/ForEachReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfCaseLetReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfLetReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/OnChange.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Optional.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/PresentationReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Reduce.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Scope.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/SignpostReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/StackReducer.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/RootStore.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Store.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Alert.swift /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Binding.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/ActionSheet.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/LegacyAlert.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/NavigationLinkStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/FullScreenCover.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/IfLetStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationDestination.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Popover.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/PresentationModifier.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Sheet.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/WithViewStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/TestStore.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/AlertStateUIKit.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/IfLetUIKit.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/NSObject+Observation.swift -primary-file /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/ViewStore.swift -supplementary-output-file-map /var/folders/c3/yyzr8vp96lg9ycnj632jvpnw0000gn/T/TemporaryDirectory.fiiGJn/supplementaryOutputs-4 -target arm64-apple-macosx10.15 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -I /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug -I /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ModuleCache -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/bin/swift-driver -load-plugin-executable /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/PerceptionMacros#PerceptionMacros -load-plugin-executable /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/DependenciesMacrosPlugin#DependenciesMacrosPlugin -load-plugin-executable /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/CasePathsMacros#CasePathsMacros -load-plugin-executable /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitectureMacros#ComposableArchitectureMacros -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -empty-abi-descriptor -resource-dir /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -isysroot -Xcc /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -Xcc -F -Xcc /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name ComposableArchitecture -package-name swift_composable_architecture -target-sdk-version 14.0 -target-sdk-name macosx14.0 -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/local/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/lib/swift/host/plugins -plugin-path /Users/runner/hostedtoolcache/swift-5.10-DEVELOPMENT-SNAPSHOT-2023-12-10-a-xcode/5.10.0/aarch64/usr/local/lib/swift/host/plugins -parse-as-library -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/ConfirmationDialog.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/ActionSheet.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/LegacyAlert.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/NavigationLinkStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/ForEachStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/FullScreenCover.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/IfLetStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/NavigationDestination.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/NavigationStackStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/Popover.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/PresentationModifier.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/Sheet.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/SwitchStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/WithViewStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/TestStore.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/AlertStateUIKit.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/IfLetUIKit.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/NSObject+Observation.swift.o -o /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/ComposableArchitecture.build/ViewStore.swift.o -index-store-path /Users/runner/work/composable-loadable/composable-loadable/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1. Apple Swift version 5.10-dev (LLVM 57d4e30156f5d21, Swift c05dd0b9c7ce6bc)
2. Compiling with the current language version
3. While walking into body of '_confirmationDialog(store:state:action:)' (at /Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift:57:11)
4. While verifying closure expression at [/Users/runner/work/composable-loadable/composable-loadable/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift:64:7 - line:94:5] RangeText="{ `self`, $isPresented, destination in
let confirmationDialogState = store.withState { $0.wrappedValue.flatMap(toDestinationState) }
self.confirmationDialog(
(confirmationDialogState?.title).map(Text.init) ?? Text(verbatim: ""),
isPresented: $isPresented,
titleVisibility: (confirmationDialogState?.titleVisibility).map(Visibility.init)
?? .automatic,
presenting: confirmationDialogState,
actions: { confirmationDialogState in
ForEach(confirmationDialogState.buttons) { button in
Button(role: button.role.map(ButtonRole.init)) {
switch button.action.type {
case let .send(action):
if let action {
store.send(.presented(fromDestinationAction(action)))
}
case let .animatedSend(action, animation):
if let action {
store.send(.presented(fromDestinationAction(action)), animation: animation)
}
}
} label: {
Text(button.label)
}
}
},
message: {
$0.message.map(Text.init)
}
)
"
5. While evaluating request LocalDiscriminatorsRequest(0x141cbe458 AbstractClosureExpr line=64 : (Self, Binding<Bool>, DestinationContent<ConfirmationDialogState<ButtonAction>, ButtonAction>) -> some View)
6. While evaluating request LocalDiscriminatorsRequest(0x1228493f8 AbstractFunctionDecl name=_confirmationDialog(store:state:action:) : <Self, State, Action, ButtonAction where Self : View> (Self) -> (Store<PresentationState<State>, PresentationAction<Action>>, @escaping (State) -> ConfirmationDialogState<ButtonAction>?, @escaping (ButtonAction) -> Action) -> some View)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x0000000105de4928 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x0000000105de3ccc llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x0000000105de4f68 SignalHandler(int) + 304
3 libsystem_platform.dylib 0x000000018d265a24 _sigtramp + 56
4 libsystem_pthread.dylib 0x000000018d235cc0 pthread_kill + 288
5 libsystem_c.dylib 0x000000018d141a40 abort + 180
6 libsystem_c.dylib 0x000000018d140d30 err + 0
7 swift-frontend 0x000000010628dd48 swift::ValueDecl::setLocalDiscriminator(unsigned int) (.cold.2) + 0
8 swift-frontend 0x00000001023d0118 swift::ValueDecl::getOverriddenDecl() const + 0
9 swift-frontend 0x0000000102065598 (anonymous namespace)::SetLocalDiscriminators::setLocalDiscriminator(swift::ValueDecl*) + 776
10 swift-frontend 0x000000010206a1fc (anonymous namespace)::SetLocalDiscriminators::walkToExprPre(swift::Expr*) + 360
11 swift-frontend 0x0000000102372d38 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 40
12 swift-frontend 0x0000000102373740 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 144
13 swift-frontend 0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
14 swift-frontend 0x00000001023746ac swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 408
15 swift-frontend 0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
16 swift-frontend 0x000000010237467c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 360
17 swift-frontend 0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
18 swift-frontend 0x0000000102372e30 swift::Stmt::walk(swift::ASTWalker&) + 32
19 swift-frontend 0x000000010206a134 (anonymous namespace)::SetLocalDiscriminators::walkToExprPre(swift::Expr*) + 160
20 swift-frontend 0x0000000102372d38 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 40
21 swift-frontend 0x000000010237704c (anonymous namespace)::Traversal::visit(swift::ArgumentList*) + 220
22 swift-frontend 0x000000010237362c (anonymous namespace)::Traversal::doIt(swift::ArgumentList*) + 100
23 swift-frontend 0x0000000102373754 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 164
24 swift-frontend 0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
25 swift-frontend 0x000000010237370c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 92
26 swift-frontend 0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
27 swift-frontend 0x00000001023746ac swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 408
28 swift-frontend 0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
29 swift-frontend 0x000000010237467c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 360
30 swift-frontend 0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
31 swift-frontend 0x0000000102372e30 swift::Stmt::walk(swift::ASTWalker&) + 32
32 swift-frontend 0x00000001020650a0 swift::LocalDiscriminatorsRequest::evaluate(swift::Evaluator&, swift::DeclContext*) const + 1004
33 swift-frontend 0x0000000102418ac0 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultUncached<swift::LocalDiscriminatorsRequest>(swift::LocalDiscriminatorsRequest const&) + 376
34 swift-frontend 0x00000001024187c8 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultCached<swift::LocalDiscriminatorsRequest, (void*)0>(swift::LocalDiscriminatorsRequest const&) + 384
35 swift-frontend 0x00000001023cffe0 swift::LocalDiscriminatorsRequest::OutputType swift::evaluateOrDefault<swift::LocalDiscriminatorsRequest>(swift::Evaluator&, swift::LocalDiscriminatorsRequest, swift::LocalDiscriminatorsRequest::OutputType) + 52
36 swift-frontend 0x0000000102418ac0 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultUncached<swift::LocalDiscriminatorsRequest>(swift::LocalDiscriminatorsRequest const&) + 376
37 swift-frontend 0x00000001024187c8 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultCached<swift::LocalDiscriminatorsRequest, (void*)0>(swift::LocalDiscriminatorsRequest const&) + 384
38 swift-frontend 0x00000001023cffe0 swift::LocalDiscriminatorsRequest::OutputType swift::evaluateOrDefault<swift::LocalDiscriminatorsRequest>(swift::Evaluator&, swift::LocalDiscriminatorsRequest, swift::LocalDiscriminatorsRequest::OutputType) + 52
39 swift-frontend 0x0000000102503c54 swift::AbstractClosureExpr::getDiscriminator() const + 72
40 swift-frontend 0x000000010236ef58 (anonymous namespace)::Verifier::verifyChecked(swift::AbstractClosureExpr*) + 412
41 swift-frontend 0x0000000102366934 (anonymous namespace)::Verifier::walkToExprPost(swift::Expr*) + 20960
42 swift-frontend 0x0000000102372db0 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 160
43 swift-frontend 0x0000000102373740 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 144
44 swift-frontend 0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
45 swift-frontend 0x0000000102373838 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 392
46 swift-frontend 0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
47 swift-frontend 0x000000010237704c (anonymous namespace)::Traversal::visit(swift::ArgumentList*) + 220
48 swift-frontend 0x000000010237362c (anonymous namespace)::Traversal::doIt(swift::ArgumentList*) + 100
49 swift-frontend 0x0000000102373754 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 164
50 swift-frontend 0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
51 swift-frontend 0x000000010237370c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 92
52 swift-frontend 0x0000000102372d8c (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
53 swift-frontend 0x00000001023746ac swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 408
54 swift-frontend 0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
55 swift-frontend 0x000000010237467c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 360
56 swift-frontend 0x0000000102372eb8 (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
57 swift-frontend 0x0000000102376ddc (anonymous namespace)::Traversal::visitAbstractFunctionDecl(swift::AbstractFunctionDecl*) + 628
58 swift-frontend 0x0000000102373484 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 320
59 swift-frontend 0x0000000102375ea8 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Decl*) + 2500
60 swift-frontend 0x0000000102373484 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 320
61 swift-frontend 0x0000000102373338 swift::Decl::walk(swift::ASTWalker&) + 32
62 swift-frontend 0x00000001025446ac swift::SourceFile::walk(swift::ASTWalker&) + 248
63 swift-frontend 0x00000001023604f0 swift::verify(swift::SourceFile&) + 96
64 swift-frontend 0x00000001026634c8 swift::TypeCheckSourceFileRequest::cacheResult(std::__1::tuple<>) const + 76
65 swift-frontend 0x00000001020a361c llvm::Expected<swift::TypeCheckSourceFileRequest::OutputType> swift::Evaluator::getResultCached<swift::TypeCheckSourceFileRequest, (void*)0>(swift::TypeCheckSourceFileRequest const&) + 120
66 swift-frontend 0x00000001020a1360 swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType) + 44
67 swift-frontend 0x0000000101107de0 bool llvm::function_ref<bool (swift::SourceFile&)>::callback_fn<swift::CompilerInstance::performSema()::$_7>(long, swift::SourceFile&) + 16
68 swift-frontend 0x00000001011035fc swift::CompilerInstance::forEachFileToTypeCheck(llvm::function_ref<bool (swift::SourceFile&)>) + 76
69 swift-frontend 0x0000000101103590 swift::CompilerInstance::performSema() + 92
70 swift-frontend 0x0000000100f588b4 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 60
71 swift-frontend 0x0000000100f4c258 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 740
72 swift-frontend 0x0000000100f4b1dc swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2496
73 swift-frontend 0x0000000100e12290 swift::mainEntry(int, char const**) + 2152
74 dyld 0x000000018ceb50e0 start + 2360
error: fatalError
Error: Process completed with exit code 1.
I'm running into this as well. The project compiles fine and tests pass on my local machine, but I'm seeing this error thrown from a github action.
https://github.com/twof/EverythingButTheBagel/actions/runs/8496687181/job/23274349662
I think there may be something wrong with the release being used by swift-actions/setup-swift@v2
. I switched from
- uses: swift-actions/setup-swift@v2
with:
swift-version: "5.10"
to
- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app/Contents/Developer
And that resolved the issue.
Nice - thanks @twof,
Another option/method is to the env,
env:
DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer
Adding a step to report the version,
- name: Report Swift Version
run: xcrun swift --version
Run xcrun swift --version Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) Target: arm64-apple-macosx14.0 swift-driver version: 1.90.11.1
Description
I've got a compiler crash using
swift build
on macOS 14.2.1 with a brand new package without any code after adding TCA as a dependency with the swift-DEVELOPMENT-SNAPSHOT-2024-01-22-a toolchain.Reproduction
git clone https://github.com/kuglee/SwiftCompilerCrash
3.2.cd SwiftCompilerCrash
3.3.export TOOLCHAINS=swift
3.4.swift build
Stack dump
Expected behavior
The package compiles successfully.
Environment
Apple Swift version 5.11-dev (LLVM 79aab1b6aed58d0, Swift fd9726839309a33) Target: arm64-apple-macosx14.0
Additional information
The package builds fine with the following toolchain: swift-driver version: 1.90.8 Apple Swift version 5.10 (swiftlang-5.10.0.10.5 clang-1500.3.7.4) Target: arm64-apple-macosx14.0