Closed alicerunsonfedora closed 8 months ago
Thanks for reporting @alicerunsonfedora . Unfortunately this is one case where we rely on Swift features that are not in the Swift 5.9 or 5.10 builds. This project requires more recent Swift toolchain builds. See this note in our Readme.
https://github.com/tristanlabelle/swift-winrt is an independent implementation I'm working on. It doesn't have this specific problem, but it is different in many other ways and less battle-tested.
Thanks for the information!
Unfortunately this is one case where we rely on Swift features that are not in the Swift 5.9 or 5.10 builds. This project requires more recent Swift toolchain builds.
Would a nightly snapshot of the Swift tool chain (I believe Swift 6) work for this project?
Yes. @retroactive
has been in main for a while and is in Swift 6.
Awesome, thanks! I'll switch over to the Swift 6 toolchain again.
Marquis Kurt [mar.kɪs kɚrt] he/him/his https://marquiskurt.net
From: Tristan Labelle @.> Sent: Monday, April 1, 2024 14:57 To: thebrowsercompany/swift-winrt @.> Cc: Marquis Kurt @.>; Mention @.> Subject: Re: [thebrowsercompany/swift-winrt] Receiving an error for unknown attribute @retroactive (Issue #152)
Yes. @retroactive has been in main for a while and is in Swift 6.
— Reply to this email directly, view it on GitHubhttps://github.com/thebrowsercompany/swift-winrt/issues/152#issuecomment-2030360017, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADGSPSFRHPE7USTFTHTADT3Y3GUZ7AVCNFSM6AAAAABFP4LXX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZQGM3DAMBRG4. You are receiving this because you were mentioned.Message ID: @.***>
I forgot to close this, but using the Swift 6 toolchain resolves the issue.
I've tried to compile a minimal example project using the Swift-WinUI package:
However, I keep receiving build errors about an unknown
@retroactive
attribute:Build error log
``` Building for debugging... error: emit-module command failed with exit code 1 (use -v to see invocation) C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:42: error: unknown attribute 'retroactive' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:1: error: inheritance from non-protocol type 'any Hashable' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:17: error: unknown attribute 'retroactive' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:1: error: inheritance from non-protocol type 'any CustomStringConvertible' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:17: error: unknown attribute 'retroactive' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:1: error: inheritance from non-protocol type 'any Equatable' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:47: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:70: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:42: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:65: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:43: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:66: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:42: error: unknown attribute 'retroactive' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:1: error: inheritance from non-protocol type 'any Hashable' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:17: error: unknown attribute 'retroactive' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:1: error: inheritance from non-protocol type 'any CustomStringConvertible' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:17: error: unknown attribute 'retroactive' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:1: error: inheritance from non-protocol type 'any Equatable' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:42: error: unknown attribute 'retroactive' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:1: error: inheritance from non-protocol type 'any Hashable' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:17: error: unknown attribute 'retroactive' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:1: error: inheritance from non-protocol type 'any CustomStringConvertible' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:17: error: unknown attribute 'retroactive' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:1: error: inheritance from non-protocol type 'any Equatable' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:42: error: unknown attribute 'retroactive' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:1: error: inheritance from non-protocol type 'any Hashable' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:17: error: unknown attribute 'retroactive' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:1: error: inheritance from non-protocol type 'any CustomStringConvertible' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:17: error: unknown attribute 'retroactive' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:1: error: inheritance from non-protocol type 'any Equatable' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:42: error: unknown attribute 'retroactive' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:1: error: inheritance from non-protocol type 'any Hashable' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:17: error: unknown attribute 'retroactive' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:1: error: inheritance from non-protocol type 'any CustomStringConvertible' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:17: error: unknown attribute 'retroactive' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:1: error: inheritance from non-protocol type 'any Equatable' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:42: error: unknown attribute 'retroactive' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\EVENTSOURCE.swift:25:1: error: inheritance from non-protocol type 'any Hashable' extension CWinRT.EventRegistrationToken: @retroactive Hashable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:17: error: unknown attribute 'retroactive' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:4:1: error: inheritance from non-protocol type 'any CustomStringConvertible' extension GUID: @retroactive CustomStringConvertible { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:17: error: unknown attribute 'retroactive' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Support\GUID.swift:31:1: error: inheritance from non-protocol type 'any Equatable' extension GUID: @retroactive Equatable { ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:47: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:70: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:47: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:70: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:47: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:70: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:47: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:70: error: unknown attribute 'retroactive' extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.Collections.swift:503:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.CollectionChange: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:42: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:65: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:43: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:66: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:42: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:65: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:43: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:66: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:42: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:65: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:43: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:66: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:42: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:65: error: unknown attribute 'retroactive' extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:828:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.AsyncStatus: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:43: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Hashable' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:66: error: unknown attribute 'retroactive' extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ C:\Users\marqu\Developer\BabysFirstWindowsApp\.build\checkouts\swift-windowsfoundation\Sources\WindowsFoundation\Generated\Windows.Foundation.swift:955:1: error: inheritance from non-protocol type 'any Codable' (aka 'any Decodable & Encodable') extension WindowsFoundation.PropertyType: @retroactive Hashable, @retroactive Codable {} ^ error: fatalError * The terminal process "C:\Users\marqu\AppData\Local\Programs\Swift\Toolchains\5.10.0+Asserts\usr\bin\swift.exe 'build', '--product', 'BabysFirstWindowsApp', '-Xlinker', '-debug:dwarf'" terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it. ```It seems that https://github.com/tristanlabelle/swift-winrt might have this fixed, but it wasn't backported here.
Environment
Swift Version: 5.10.0 Windows Version 11 Pro (23H2, OS Build 22631.3374)
MinimalRepro.zip