这是indexloc提供的服务,不要输入任何密码

How can I enable “Approachable Concurrency” for a Swift Package?

I’m aware that Xcode version 26 beta 3 provides an option to enable Swift’s Approachable Concurrency feature at the project level. However, I’d like to achieve the same for a Swift Package. Could you please advise on how to enable Approachable Concurrency support specifically for a Swift Package?

Answered by DTS Engineer in 849892022

Xcode’s Approachable Concurrency build setting (SWIFT_APPROACHABLE_CONCURRENCY) enabled a bunch of upcoming feature flags. You can find the current list in the Quick Help for that build setting.

Upcoming feature flags are specifically supported in Swift Package Manager. See SE-0362 Piecemeal adoption of upcoming language improvements for the details.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Xcode’s Approachable Concurrency build setting (SWIFT_APPROACHABLE_CONCURRENCY) enabled a bunch of upcoming feature flags. You can find the current list in the Quick Help for that build setting.

Upcoming feature flags are specifically supported in Swift Package Manager. See SE-0362 Piecemeal adoption of upcoming language improvements for the details.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Oh, and by an amazing coincidence, one of the iOS development blogs I read just published an article about this:

https://useyourloaf.com/blog/approachable-concurrency-in-swift-packages/

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How can I enable “Approachable Concurrency” for a Swift Package?
 
 
Q