Defaults icon indicating copy to clipboard operation
Defaults copied to clipboard

Fix build error for SE-0409

Open kitwtnb opened this issue 1 year ago • 4 comments

SE-0409 , introduced in Swift 6, changes import from implicit public import to internal import.
The internal import does not allow imports to be public and will result in build errors, so public has been added.
https://github.com/swiftlang/swift-evolution/blob/main/proposals/0409-access-level-on-imports.md

kitwtnb avatar Jul 25 '24 01:07 kitwtnb

CI may need to build with Xcode 16 to resolve build errors. 🫤

kitwtnb avatar Jul 25 '24 01:07 kitwtnb

Swift 6 does not come with this setting on by default, and also, the point of it is to prefer internal import as much as possible.

sindresorhus avatar Jul 25 '24 12:07 sindresorhus

https://forums.swift.org/t/progress-toward-the-swift-6-language-mode/68315#the-swift-6-migration-2

There are a number of previously-accepted upcoming features that will be enabled by default in Swift 6

The forum states that it is enabled by default, but where can I find that it is disabled by default?

kitwtnb avatar Jul 25 '24 13:07 kitwtnb

I don't remember where I saw it, but you can see it in the Xcode beta:

Screenshot 2024-07-25 at 15 44 22

sindresorhus avatar Jul 25 '24 13:07 sindresorhus