Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to build Observable extenion method on RxSwift #67815

Closed
JCSooHwanCho opened this issue Aug 9, 2023 · 29 comments · Fixed by #68254
Closed

fail to build Observable extenion method on RxSwift #67815

JCSooHwanCho opened this issue Aug 9, 2023 · 29 comments · Fixed by #68254
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. overload resolution Area → compiler → type checker: Overload resolution (ranking) regression type checker Area → compiler: Semantic analysis

Comments

@JCSooHwanCho
Copy link
Contributor

Description
in Xcode 15 beta 6,RxSwiftExt Package is starting to fail building. It turns out that specific method declaration extension is problematic.

Steps to reproduce

I made a simple example to reproduce. or you can try to build RxSwiftExt Package.

import RxSwift

extension Observable {
    func test() -> Observable<Bool> {
        // error: Cannot convert return expression of type 'Observable<Element>' to return type 'Observable<Bool>'
        // error: Cannot specialize non-generic type 'Observable<Element>'
        return Observable<Bool>.empty()
    }
}

but this two code is passing without error.

// fully unqualified
extension Observable {
    func test() -> Observable<Bool> {
        return .empty()
    }
}

// fully qualified
extension Observable {
    func test() -> Observable<Bool> {
        return RxSwift.Observable<Bool>.empty()
    }
}

Expected behavior

build success without error

Environment

  • Swift compiler version info

swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.2 clang-1500.0.40.1)
Target: arm64-apple-macosx13.0

  • Xcode version info

Xcode 15.0
Build version 15A5219j

  • Deployment target: N/A
@JCSooHwanCho JCSooHwanCho added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Aug 9, 2023
@freak4pc
Copy link
Contributor

freak4pc commented Aug 9, 2023

FYI this is a regression from Xcode 15 Beta 5 where this worked with no issues

@tbkka
Copy link
Contributor

tbkka commented Aug 9, 2023

CC: @xedin

rudedogdhc added a commit to FountainheadMobileSolutions/RxSwiftExt that referenced this issue Aug 9, 2023
Needed because Xcode 15beta6 has a conflict between RxSwift.Observable and Foundation.Observable. By using the static member names, swift is able to infer the correct type. See swiftlang/swift#67815

This may not be needed if Apple fixes the issue.
@treastrain
Copy link
Contributor

I was just having this problem too. Thanks for creating this issue!

@dk53
Copy link

dk53 commented Aug 14, 2023

I will follow this, just jumped into this issue too

@noypi-dev
Copy link

Still an issue in Beta 7

image

@freak4pc
Copy link
Contributor

Any chance we could get some clarity about this by anyone from the Core Team? The release date is right around the corner and this was already fixed and then regressed during the beta itself. @DougGregor

@MontakOleg
Copy link

Still an issue in Xcode 15 Beta 8

@freak4pc
Copy link
Contributor

This is just unbelievable :(
The bug is one thing but the silence around this is really baffling.

@hborla hborla added type checker Area → compiler: Semantic analysis overload resolution Area → compiler → type checker: Overload resolution (ranking) and removed triage needed This issue needs more specific labels labels Sep 1, 2023
@hborla
Copy link
Member

hborla commented Sep 1, 2023

I believe this is a constraint system bug that was introduced by #66657, and this bug manifested with RxSwift when Foundation started exporting the Observation library in Xcode 15 Beta 6. The bug is specific to writing an explicitly specialized Observable<X> in expressions in a situation where the constraint system has to perform overload resolution in order to determine what the type refers to (e.g. because there's an import Foundation that also surfaces an Observable declaration), which is why explicitly specifying RxSwift.Observable<X>.empty works around the problem. Regular type annotations should be unaffected, which is why removing Observable<X> from the expression and using the leading dot syntax works around the issue. Removing the specialization may also workaround the problem, though I have not attempted that yet to confirm whether or not it works.

@xedin is working on a fix.

xedin added a commit to xedin/swift that referenced this issue Sep 1, 2023
Move logic from `ConstraintGenerator::visitOverloadedDeclRefExpr`
to pre-check to avoid including macro declarations referenced
without `#`. This means that pre-checking would synthesize
`TypeExpr` in situations when there is a type reference that
is shadowed by a stdlib macro.

Resolves: swiftlang#67815
Resolves: rdar://114796811
@freak4pc
Copy link
Contributor

freak4pc commented Sep 1, 2023

Thank you so much for addressing this! I hope #68254 will bring us over this :)

@xedin
Copy link
Contributor

xedin commented Sep 1, 2023

xedin added a commit to xedin/swift that referenced this issue Sep 1, 2023
Move logic from `ConstraintGenerator::visitOverloadedDeclRefExpr`
to pre-check to avoid including macro declarations referenced
without `#`. This means that pre-checking would synthesize
`TypeExpr` in situations when there is a type reference that
is shadowed by a stdlib macro.

Resolves: swiftlang#67815
Resolves: rdar://114796811
(cherry picked from commit cf257aa)
@freak4pc
Copy link
Contributor

freak4pc commented Sep 2, 2023

If you'd like you can test with https://ci.swift.org/job/swift-PR-toolchain-macos/850/artifact/branch-main/swift-PR-68254-850-osx.tar.gz

Thanks Pavel!
I tried testing it but I'm getting build failures from a seemingly-unrelated SDK. Could the custom toolchain be the reason?

image

I'll try isolating the issue to a separate project but it would be nice to get our large project building as it would give high confidence the fix is good :)

@freak4pc
Copy link
Contributor

freak4pc commented Sep 2, 2023

I've removed the Sentry SDK but now bumping into a different build issue, I'm just not 100% sure if it's just a side-effect of using a custom toolchain or there's something wrong. Attaching the dump just in case:


Showing All Messages
SwiftCompile normal arm64 Compiling\ ConfirmationDialog.swift,\ ActionSheet.swift,\ LegacyAlert.swift,\ NavigationLinkStore.swift,\ ForEachStore.swift,\ FullScreenCover.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/ActionSheet.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/LegacyAlert.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/NavigationLinkStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/FullScreenCover.swift (in target 'ComposableArchitecture' from project 'swift-composable-architecture')
    cd /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture
    builtin-swiftTaskExecution -- /Library/Developer/Toolchains/swift-PR-68254-850.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/Dismiss.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/IsPresented.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effect.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Animation.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Cancellation.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Debounce.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/EffectActions.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Publisher.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/TaskResult.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Throttle.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/AreOrderedSetsDuplicates.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Binding+IsPresent.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Box.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Create.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/CurrentValueRelay.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Debug.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Deprecations.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/EphemeralState.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Exports.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Locking.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/NavigationID.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/OpenExistential.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/PresentationID.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/ReturningLastNonNilValue.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/RuntimeWarnings.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/StackIDGenerator.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/TypeName.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/ReducerBuilder.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/BindingReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/CombineReducers.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DebugReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DependencyKeyWritingReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/EmptyReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/ForEachReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfCaseLetReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfLetReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/OnChange.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Optional.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/PresentationReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Reduce.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Scope.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/SignpostReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/StackReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Store.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Alert.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Binding.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/ActionSheet.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/LegacyAlert.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/NavigationLinkStore.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/FullScreenCover.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/IfLetStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationDestination.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Popover.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/PresentationModifier.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Sheet.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/WithViewStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/TestStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/AlertStateUIKit.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/IfLetUIKit.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/ViewStore.swift -supplementary-output-file-map /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/supplementaryOutputs-1093 -target arm64-apple-ios13.0-simulator -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -I /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Products/production-iphonesimulator -F /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Products/production-iphonesimulator -F /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -no-color-diagnostics -suppress-warnings -enable-testing -g -module-cache-path /Users/shaimi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D SWIFT_PACKAGE -D DEBUG -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins\#/Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins\#/Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -serialize-debugging-options -const-gather-protocols-file /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ComposableArchitecture_const_extract_protocols.json -enable-bare-slash-regex -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/shaimi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture -resource-dir /Library/Developer/Toolchains/swift-PR-68254-850.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/swift-overrides.hmap -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Products/production-iphonesimulator/include -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/DerivedSources-normal/arm64 -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/DerivedSources/arm64 -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/DerivedSources -Xcc -DDEBUG\=1 -Xcc -DSWIFT_PACKAGE\=1 -module-name ComposableArchitecture -frontend-parseable-output -disable-clang-spi -target-sdk-version 17.0 -target-sdk-name iphonesimulator17.0 -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/lib/swift/host/plugins\#/Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/local/lib/swift/host/plugins\#/Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins\#/Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/lib/swift/host/plugins\#/Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Library/Developer/Toolchains/swift-PR-68254-850.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Library/Developer/Toolchains/swift-PR-68254-850.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ConfirmationDialog.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ActionSheet.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/LegacyAlert.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/NavigationLinkStore.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ForEachStore.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/FullScreenCover.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ConfirmationDialog.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ActionSheet.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/LegacyAlert.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/NavigationLinkStore.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ForEachStore.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/FullScreenCover.o -index-store-path /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Index.noindex/DataStore -index-system-modules

Assertion failed: (LocalDiscriminator == InvalidDiscriminator && "LocalDiscriminator is set multiple times"), function setLocalDiscriminator, file Decl.cpp, line 2989.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /Library/Developer/Toolchains/swift-PR-68254-850.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/Dismiss.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Dependencies/IsPresented.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effect.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Animation.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Cancellation.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Debounce.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/EffectActions.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Publisher.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/TaskResult.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Effects/Throttle.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/AreOrderedSetsDuplicates.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Binding+IsPresent.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Box.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Create.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/CurrentValueRelay.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Debug.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Deprecations.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/EphemeralState.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Exports.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/Locking.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/NavigationID.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/OpenExistential.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/PresentationID.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/ReturningLastNonNilValue.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/RuntimeWarnings.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/StackIDGenerator.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Internal/TypeName.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/ReducerBuilder.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/BindingReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/CombineReducers.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DebugReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/DependencyKeyWritingReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/EmptyReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/ForEachReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfCaseLetReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/IfLetReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/OnChange.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Optional.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/PresentationReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Reduce.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/Scope.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/SignpostReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Reducer/Reducers/StackReducer.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/Store.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Alert.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Binding.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/ActionSheet.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/LegacyAlert.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Deprecated/NavigationLinkStore.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift -primary-file /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/FullScreenCover.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/IfLetStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationDestination.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Popover.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/PresentationModifier.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/Sheet.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/WithViewStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/TestStore.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/AlertStateUIKit.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/UIKit/IfLetUIKit.swift /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/ViewStore.swift -supplementary-output-file-map /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/supplementaryOutputs-1093 -target arm64-apple-ios13.0-simulator -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -I /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Products/production-iphonesimulator -F /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Products/production-iphonesimulator -F /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -no-color-diagnostics -suppress-warnings -enable-testing -g -module-cache-path /Users/shaimi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -Onone -D SWIFT_PACKAGE -D DEBUG -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins#/Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins#/Applications/Xcode15.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-plugin-server -serialize-debugging-options -const-gather-protocols-file /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ComposableArchitecture_const_extract_protocols.json -enable-bare-slash-regex -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/shaimi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture -resource-dir /Library/Developer/Toolchains/swift-PR-68254-850.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/swift-overrides.hmap -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Products/production-iphonesimulator/include -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/DerivedSources-normal/arm64 -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/DerivedSources/arm64 -Xcc -I/Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DSWIFT_PACKAGE=1 -module-name ComposableArchitecture -frontend-parseable-output -disable-clang-spi -target-sdk-version 17.0 -target-sdk-name iphonesimulator17.0 -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/lib/swift/host/plugins#/Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/local/lib/swift/host/plugins#/Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode15.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Library/Developer/Toolchains/swift-PR-68254-850.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Library/Developer/Toolchains/swift-PR-68254-850.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ConfirmationDialog.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ActionSheet.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/LegacyAlert.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/NavigationLinkStore.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ForEachStore.o -o /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Build/Intermediates.noindex/swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/FullScreenCover.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ConfirmationDialog.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ActionSheet.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/LegacyAlert.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/NavigationLinkStore.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/ForEachStore.o -index-unit-output-path /swift-composable-architecture.build/production-iphonesimulator/ComposableArchitecture.build/Objects-normal/arm64/FullScreenCover.o -index-store-path /Users/shaimi/Library/Developer/Xcode/DerivedData/Monday-aaoysaoulhchviawgdkxqwobdnux/Index.noindex/DataStore -index-system-modules
1.	Apple Swift version 5.9-dev (LLVM f102d9d4700e9d3, Swift 830b15e058bf31f)
2.	Compiling with the current language version
3.	While walking into body of 'confirmationDialog(store:state:action:)' (at /Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift:29:10)
4.	While verifying closure expression at [/Users/shaimi/Work/Monday/App/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/swift-composable-architecture/Sources/ComposableArchitecture/SwiftUI/ConfirmationDialog.swift:36:7 - line:66:5] RangeText="{ `self`, $isPresented, destination in
      let confirmationDialogState = store.state.value.wrappedValue.flatMap(toDestinationState)
      self.confirmationDialog(
        (confirmationDialogState?.title).map(Text.init) ?? Text(""),
        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 = action {
                  store.send(.presented(fromDestinationAction(action)))
                }
              case let .animatedSend(action, animation):
                if let action = action {
                  store.send(.presented(fromDestinationAction(action)), animation: animation)
                }
              }
            } label: {
              Text(button.label)
            }
          }
        },
        message: {
          $0.message.map(Text.init)
        }
      )
    "
5.	While evaluating request LocalDiscriminatorsRequest(0x121a6f020 AbstractClosureExpr line=36 : (Self, Binding<Bool>, DestinationContent<ConfirmationDialogState<ButtonAction>, ButtonAction>) -> some View)
6.	While evaluating request LocalDiscriminatorsRequest(0x120875650 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           0x0000000107cc315c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000107cc2500 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x0000000107cc379c SignalHandler(int) + 304
3  libsystem_platform.dylib 0x000000018a019a24 _sigtramp + 56
4  libsystem_pthread.dylib  0x0000000189feacc0 pthread_kill + 288
5  libsystem_c.dylib        0x0000000189efaa80 abort + 180
6  libsystem_c.dylib        0x0000000189ef9d9c err + 0
7  swift-frontend           0x00000001081692c4 swift::ValueDecl::setLocalDiscriminator(unsigned int) (.cold.2) + 0
8  swift-frontend           0x00000001042b5b44 swift::ValueDecl::getOverriddenDecl() const + 0
9  swift-frontend           0x0000000103fd2348 (anonymous namespace)::SetLocalDiscriminators::setLocalDiscriminator(swift::ValueDecl*) + 776
10 swift-frontend           0x0000000103fd6f08 (anonymous namespace)::SetLocalDiscriminators::walkToExprPre(swift::Expr*) + 360
11 swift-frontend           0x0000000104258eac (anonymous namespace)::Traversal::doIt(swift::Expr*) + 40
12 swift-frontend           0x00000001042598b4 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 144
13 swift-frontend           0x0000000104258f00 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
14 swift-frontend           0x000000010425a818 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 400
15 swift-frontend           0x000000010425902c (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
16 swift-frontend           0x000000010425a7f0 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 360
17 swift-frontend           0x000000010425902c (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
18 swift-frontend           0x0000000104258fa4 swift::Stmt::walk(swift::ASTWalker&) + 32
19 swift-frontend           0x0000000103fd6e40 (anonymous namespace)::SetLocalDiscriminators::walkToExprPre(swift::Expr*) + 160
20 swift-frontend           0x0000000104258eac (anonymous namespace)::Traversal::doIt(swift::Expr*) + 40
21 swift-frontend           0x000000010425d178 (anonymous namespace)::Traversal::visit(swift::ArgumentList*) + 220
22 swift-frontend           0x00000001042597a0 (anonymous namespace)::Traversal::doIt(swift::ArgumentList*) + 100
23 swift-frontend           0x00000001042598c8 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 164
24 swift-frontend           0x0000000104258f00 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
25 swift-frontend           0x0000000104259880 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 92
26 swift-frontend           0x0000000104258f00 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
27 swift-frontend           0x000000010425a818 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 400
28 swift-frontend           0x000000010425902c (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
29 swift-frontend           0x000000010425a7f0 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 360
30 swift-frontend           0x000000010425902c (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
31 swift-frontend           0x0000000104258fa4 swift::Stmt::walk(swift::ASTWalker&) + 32
32 swift-frontend           0x0000000103fd1e50 swift::LocalDiscriminatorsRequest::evaluate(swift::Evaluator&, swift::DeclContext*) const + 1004
33 swift-frontend           0x00000001042fdee4 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultUncached<swift::LocalDiscriminatorsRequest>(swift::LocalDiscriminatorsRequest const&) + 376
34 swift-frontend           0x00000001042fdbec llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultCached<swift::LocalDiscriminatorsRequest, (void*)0>(swift::LocalDiscriminatorsRequest const&) + 384
35 swift-frontend           0x00000001042b5a0c swift::LocalDiscriminatorsRequest::OutputType swift::evaluateOrDefault<swift::LocalDiscriminatorsRequest>(swift::Evaluator&, swift::LocalDiscriminatorsRequest, swift::LocalDiscriminatorsRequest::OutputType) + 52
36 swift-frontend           0x00000001042fdee4 llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultUncached<swift::LocalDiscriminatorsRequest>(swift::LocalDiscriminatorsRequest const&) + 376
37 swift-frontend           0x00000001042fdbec llvm::Expected<swift::LocalDiscriminatorsRequest::OutputType> swift::Evaluator::getResultCached<swift::LocalDiscriminatorsRequest, (void*)0>(swift::LocalDiscriminatorsRequest const&) + 384
38 swift-frontend           0x00000001042b5a0c swift::LocalDiscriminatorsRequest::OutputType swift::evaluateOrDefault<swift::LocalDiscriminatorsRequest>(swift::Evaluator&, swift::LocalDiscriminatorsRequest, swift::LocalDiscriminatorsRequest::OutputType) + 52
39 swift-frontend           0x00000001043e9a28 swift::AbstractClosureExpr::getDiscriminator() const + 72
40 swift-frontend           0x00000001042550cc (anonymous namespace)::Verifier::verifyChecked(swift::AbstractClosureExpr*) + 412
41 swift-frontend           0x000000010424caa8 (anonymous namespace)::Verifier::walkToExprPost(swift::Expr*) + 20960
42 swift-frontend           0x0000000104258f24 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 160
43 swift-frontend           0x00000001042598b4 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 144
44 swift-frontend           0x0000000104258f00 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
45 swift-frontend           0x00000001042599ac swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 392
46 swift-frontend           0x0000000104258f00 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
47 swift-frontend           0x000000010425d178 (anonymous namespace)::Traversal::visit(swift::ArgumentList*) + 220
48 swift-frontend           0x00000001042597a0 (anonymous namespace)::Traversal::doIt(swift::ArgumentList*) + 100
49 swift-frontend           0x00000001042598c8 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 164
50 swift-frontend           0x0000000104258f00 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
51 swift-frontend           0x0000000104259880 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 92
52 swift-frontend           0x0000000104258f00 (anonymous namespace)::Traversal::doIt(swift::Expr*) + 124
53 swift-frontend           0x000000010425a818 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 400
54 swift-frontend           0x000000010425902c (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
55 swift-frontend           0x000000010425a7f0 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) + 360
56 swift-frontend           0x000000010425902c (anonymous namespace)::Traversal::doIt(swift::Stmt*) + 124
57 swift-frontend           0x000000010425cf08 (anonymous namespace)::Traversal::visitAbstractFunctionDecl(swift::AbstractFunctionDecl*) + 628
58 swift-frontend           0x00000001042595f8 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 320
59 swift-frontend           0x000000010425bfe4 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Decl*) + 2448
60 swift-frontend           0x00000001042595f8 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 320
61 swift-frontend           0x00000001042594ac swift::Decl::walk(swift::ASTWalker&) + 32
62 swift-frontend           0x0000000104429d78 swift::SourceFile::walk(swift::ASTWalker&) + 248
63 swift-frontend           0x0000000104246664 swift::verify(swift::SourceFile&) + 96
64 swift-frontend           0x0000000104547464 swift::TypeCheckSourceFileRequest::cacheResult(std::__1::tuple<>) const + 76
65 swift-frontend           0x0000000104010028 llvm::Expected<swift::TypeCheckSourceFileRequest::OutputType> swift::Evaluator::getResultCached<swift::TypeCheckSourceFileRequest, (void*)0>(swift::TypeCheckSourceFileRequest const&) + 120
66 swift-frontend           0x000000010400dd6c swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType) + 44
67 swift-frontend           0x000000010307b1e0 bool llvm::function_ref<bool (swift::SourceFile&)>::callback_fn<swift::CompilerInstance::performSema()::$_7>(long, swift::SourceFile&) + 16
68 swift-frontend           0x00000001030751c4 swift::CompilerInstance::forEachFileToTypeCheck(llvm::function_ref<bool (swift::SourceFile&)>) + 76
69 swift-frontend           0x0000000103075158 swift::CompilerInstance::performSema() + 92
70 swift-frontend           0x0000000102ecf174 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 60
71 swift-frontend           0x0000000102ec29b4 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 740
72 swift-frontend           0x0000000102ec1938 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2496
73 swift-frontend           0x0000000102cf9984 swift::mainEntry(int, char const**) + 2144
74 dyld                     0x0000000189c71058 start + 2224
Command SwiftCompile failed with a nonzero exit code

Command SwiftCompile failed with a nonzero exit code

@xedin
Copy link
Contributor

xedin commented Sep 2, 2023

I think this is worse opening is a separate issue, might be a bug on main that is only reproducible in assert builds. I am going to build a 5.9 toolchain, let’s see if it’s reproducible there as well.

@freak4pc
Copy link
Contributor

freak4pc commented Sep 2, 2023

Ok, ping me when you have a 5.9 toolchain and I'll try again 🙏 thank you!
Where should I open another bug? In this repo? FB?

@xedin
Copy link
Contributor

xedin commented Sep 2, 2023

Either FB or github issue works, I will post a toolchain link here.

@freak4pc
Copy link
Contributor

freak4pc commented Sep 3, 2023

I'm getting relatively sporadic build failures (i.e. in different files every time)

Seeing something like:

Assertion failed: (getRawDiscriminator() != InvalidDiscriminator), function getDiscriminator, file Expr.cpp, line 1922.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Assertion failed: (getRawDiscriminator() != InvalidDiscriminator), function getDiscriminator, file Expr.cpp, line 1922.

I thought this is a non-assertion build? Do I have the right one?

image

@xedin
Copy link
Contributor

xedin commented Sep 3, 2023

All of our toolchain builds have assertions enabled, I am not sure what is going on because I managed to build 6.1.0 tag of the project locally with main and my changes.

@xedin
Copy link
Contributor

xedin commented Sep 3, 2023

Maybe Xcode is not picking up a toolchain correctly in SwiftPM projects. Could you try using swift build directly?

@freak4pc
Copy link
Contributor

@xedin FYI this is still an issue in RC1
image

Check RxSwiftExt v6.1.0 (In 6.2.0 I added a typealias which helps but it's just a workaround and not a fix)

@hborla
Copy link
Member

hborla commented Sep 13, 2023

Unfortunately, that is expected. The fix for this issue was only merged to release/5.9, not release/5.9.0. It was too late to land an overload resolution change in 5.9.0.

@freak4pc
Copy link
Contributor

Thanks Holly,
Any chance it would come to a later RC? Or are we talking Xcode 15.1?

@hborla
Copy link
Member

hborla commented Sep 14, 2023

The release/5.9 branch corresponds to potential point releases of Swift 5.9. The fix is not in Swift 5.9.0.

@freak4pc
Copy link
Contributor

The release/5.9 branch corresponds to potential point releases of Swift 5.9. The fix is not in Swift 5.9.0.

Thank you:)

Sorry to go over my last question again but I truly don't understand the semantics🥲

Will a point release of 5.9.1 necessarily only come in the 15.1 version of Xcode itself? Or is there no way to tell?

Thanks for the patience and pardon my ignorance on the topic :)

@hborla
Copy link
Member

hborla commented Sep 15, 2023

I can only speak to Swift compiler versions. I cannot comment on Xcode releases.

philfi added a commit to barkinglabs/RxBluetoothKit that referenced this issue Sep 18, 2023
imports Foundation which causes issue described here: swiftlang/swift#67815 (comment)
philfi added a commit to barkinglabs/RxBluetoothKit that referenced this issue Sep 18, 2023
imports Foundation which causes issue described here: swiftlang/swift#67815 (comment)
@frndev
Copy link

frndev commented Sep 20, 2023

In my case, after updating RxSwiftExt to 6.2.1 the issue was gone

@freak4pc
Copy link
Contributor

In my case, after updating RxSwiftExt to 6.2.1 the issue was gone

Yup, we added a workaround, but it would be nice if the breakage wouldn't be happened from the get go

Would be interesting to test after the next public release of Swift

philfi added a commit to barkinglabs/RxBluetoothKit that referenced this issue Sep 25, 2023
* Add RxSwift to remove ambiguity

imports Foundation which causes issue described here: swiftlang/swift#67815 (comment)

* Create contents.xcworkspacedata

* Create Package.resolved
@kennyevo
Copy link

RxSwiftExt has added a workaround but RxRealm is not working unfortunately, so now we are waiting for the next release, until that xcode 14 it is :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. overload resolution Area → compiler → type checker: Overload resolution (ranking) regression type checker Area → compiler: Semantic analysis
Projects
None yet
Development

Successfully merging a pull request may close this issue.