Hi there, I was giving a try to the `swift-library...
# native
g
Hi there, I was giving a try to the
swift-library
and
xctest
but I'm getting weird erros on both
Mac/aarch64
and
Linux/amd64
platforms: MacOS:
Copy code
> Task :linkTest FAILED
Undefined symbols for architecture arm64:
  "_main", referenced from:
      <initial-undefines>
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Linux:
Copy code
Gradle Test Run :client-ios:xcTest STANDARD_ERROR
    Could not cast value of type '@Sendable (ClientIosTest.SerializationTest) -> () throws -> ()' (0x7f41b001ea40) to '(ClientIosTest.SerializationTest) -> () throws -> ()' (0x7f41b001ec30).

    *** Signal 6: Backtracing from 0x7f41ae57d9fc... done ***
Is it still supported? I checked https://github.com/gradle/native-samples/tree/master/swift/simple-library and the gradle version in there is
6.9
. Bumping to
9.1.0
breaks it.
Apparently the issue arises with
Swift 6
, downgrading to
Swift 5
does works
d
That is most likely an incompatibility in the core native plugin. I suggest opening an issue on Gradle project.