swhitty/SwiftDraw

Package Doesn't Build for Swift 5.9

VakhoKontridze opened this issue · 1 comments

Hey!

Package doesn't seem to build in a project with Swift 5.9 due to the Linker issues.

As a workaround, I forked the repository. When I comment out .executable(name: "swiftdraw", targets: ["CommandLine"]) line in Package.swift, it builds fine.

Thank you for reporting the issue @VakhoKontridze

I have managed to recreate it, it looks like Xcode 15 offers to link against the command line tool - swiftdraw (Executable) by default which will not link:

Screenshot 2023-12-13 at 5 13 31 pm

Make sure you only link against the SwiftDraw (Library) and it will work.