-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift 6 build fails #81
Comments
The ambiguity can be resolved by stating a the non optional var url: URL = URL("https://www.example.com") But maybe the better approach is to adapt the custom URL extension in var url: URL = URL(static: "https://www.example.com") |
It's not ideal, but we could change this. I'm really curious what's causing the breakage here! |
I'm hitting this issue also |
Still an issue with Version 16.0 beta 6 (16A5230g). |
Xcode Version 16.0 beta 6 (16A5230g) has an issue with var url: URL = URL(static: "https://www.example.com"). I get an error message of extraneous argument label 'static:' in call. To fix, remove static: URL = URL("https://www.example.com") works |
This should work now in Swift 6, tested with |
You mean without having to change anything? If so, how–cause I just started looking into Ignite yesterday and had this error as well without any code changes after creating a new site with I also tried to change the Package to this without success: // swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "IgniteStarter",
platforms: [.macOS(.v13)],
dependencies: [
.package(url: "https://github.com/twostraws/Ignite.git", branch: "main")
],
targets: [
.executableTarget(
name: "IgniteStarter",
dependencies: ["Ignite"]),
],
swiftLanguageModes: [.v6]
) I got around this by changing the line to |
I thought this is interesting. It doesn't find the
URL
extension when compiling with the Swift 6 keychain.The output is:
Swift 5.10 has no problem with it!
The text was updated successfully, but these errors were encountered: