gradle-native icon indicating copy to clipboard operation
gradle-native copied to clipboard

On macOs sequoia with XCode 16 coming with Swift 6 `swift-application` fails

Open bric3 opened this issue 1 year ago • 1 comments

Expected Behavior

No error.

Current Behavior

Just configuring gradle raises the error, so I cannot import the whole project, completion doesn't work either since the project cannot be loaded.

* What went wrong:
A problem occurred configuring project ':swift-app'.
> Swift language version is unknown for the specified Swift compiler version (6.0.0)

Context

Steps to Reproduce (for bugs)

Just create an empty project with the swift application plugin

plugins {
  `swift-application`
}

Your Environment

  • Build scan URL:

bric3 avatar Oct 04 '24 16:10 bric3

Note there a SwiftVersion but it's an enum that contains only SWIFT3(3), SWIFT4(4), SWIFT5(5).

bric3 avatar Oct 04 '24 16:10 bric3

@bric3 Can you check if the latest nightly build fixes the issue for you?

See

  • https://github.com/gradle/gradle/pull/31445

ov7a avatar Nov 29 '24 09:11 ov7a

I just tried on very simplistic project the nightly ./gradlew wrapper --gradle-version=8.12-20241129001902+0000, and it worked.

EDITED: I mentionned an issue earlier and that was me. I forgot to update some parts of the parent build file when I disabled this module on macOs 15.

bric3 avatar Nov 30 '24 10:11 bric3

Awesome, thanks for the feedback!

ov7a avatar Dec 02 '24 08:12 ov7a