swift-nio: Archiving fails in Swift 5.9, Xcode 15 beta

Expected behavior

Archiving a project with swift-nio as a dependency should succeed in Swift 5.9

Actual behavior

Archive fails with:

Sources/NIOEmbedded/AsyncTestingEventLoop.swift:59:20 
Type 'NIOAsyncTestingEventLoop' does not conform to protocol 'Executor'

Steps to reproduce

  1. Add swift-nio as SPM dependency
  2. Archive target

If possible, minimal yet complete reproducer code (or URL to code)

SwiftNIO version/commit hash

2.58.0

System & version information

macOS 13.5 Xcode 15 beta 7 Targeting iOS 17

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 1
  • Comments: 19 (9 by maintainers)

Most upvoted comments

We are aware of those warnings and there is already a PR up in the Swift repo that fixes them: https://github.com/apple/swift/pull/68617

Thanks for this report! This is a known issue with Swift 5.9. The fix has been merged here: https://github.com/apple/swift/pull/67957

Those are for swift-nio-ssl, can you file an issue on that repo and I’ll take a look?

Hey reporters, can I ask you to double-check with Xcode GM (15A240d) and confirm whether this still occurs for you?

Yes, pin down to 2.57 until there is an Xcode release.