Archive build failure when using Swift 6
cuteiosdev opened this issue · 0 comments
cuteiosdev commented
Description
When creating an archive build that includes swift-dependencies as an SPM package and Swift 6 specified as the build version, the archive build will fail on line 491 of WithDependencies.swift and the following error:
WithDependencies.swift:491:17 Non-sendable type 'R' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
Creating a debug build or running unit tests is unaffected by the issue.
Checklist
- I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
- If possible, I've reproduced the issue using the
main
branch of this package. - This issue hasn't been addressed in an existing GitHub issue or discussion.
Expected behavior
An archive build should be successfully built
Actual behavior
The build will fail on line 491 of WithDependencies.swift
Steps to reproduce
- Add swift-dependencies as an SPM package
- Set swift version to 6.0 in build settings of the project
- Create an archive build of the project and observe the failure
Dependencies version information
1.3.6
Destination operating system
iOS 18, vision OS 2, macOS 15
Xcode version information
Xcode 16 beta 4
Swift Compiler version information
swift-driver version: 1.112.3 Apple Swift version 6.0 (swiftlang-6.0.0.6.8 clang-1600.0.23.1)
Target: arm64-apple-macosx15.0