pointfreeco / swift-dependencies

A dependency management library inspired by SwiftUI's "environment."
https://www.pointfree.co
MIT License
1.52k stars 110 forks source link

Sending 'element' risks causing data races error when compiling v1.3.2 with Xcode Version 16.0 beta 3 (16A5202i) #243

Closed orj closed 1 month ago

orj commented 1 month ago

Description

When compiling version 1.3.2 of swift-dependencies reports an error: Sending 'element' risks causing data races on line 56 of Deprecations.swift

Checklist

Expected behavior

The library should compile cleanly on Xcode 16.

Actual behavior

The library does not compile.

Steps to reproduce

Compile swift-dependencies as a dependency in a Swift project with Xcode Version 16.0 beta 3 (16A5202i).

Dependencies version information

1.3.2

Destination operating system

iOS 17.5

Xcode version information

Xcode Version 16.0 beta 3 (16A5202i)

Swift Compiler version information

swift-driver version: 1.111.2 Apple Swift version 6.0 (swiftlang-6.0.0.5.15 clang-1600.0.22.6)
Target: arm64-apple-macosx14.0
hallee commented 1 month ago

I have a PR that fixes this: https://github.com/pointfreeco/swift-dependencies/pull/241