swhitty / SwiftDraw

Swift library and command line tool to convert SVGs into SFSymbol, PNG, PDF and Swift source code.
zlib License
389 stars 49 forks source link

Package Doesn't Build for Swift 5.9 #35

Closed VakhoKontridze closed 9 months ago

VakhoKontridze commented 9 months ago

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.

swhitty commented 9 months ago

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.