dagronf / DSFSparkline

A lightweight sparkline component for macOS, iOS and tvOS
MIT License
138 stars 11 forks source link

Breaks SwiftUI Previews #10

Closed kmkarim closed 1 year ago

kmkarim commented 1 year ago

When adding DSKSparkline to a swift project the following error occurs in SwiftUI previews:

HumanReadableSwiftError

SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x000060000054f960):'DSFSparkline'>)
dagronf commented 1 year ago

Thanks for reporting this, and apologies that this issue is occurring.

I found the same issues in the first couple of Xcode 14 betas and I've reported a bug (FB11397938) with Apple. I've yet to hear back from them, and unfortunately its still persists in the later betas.

There seems to be a number of folks having the same issue with different SPM packages.

https://developer.apple.com/forums/thread/707569

Even if it is a bug in this package (which I don't think is the case given Xcode 13 works fine) it should not break every swiftui preview in a project. Xcode 14 seems to have broken explicit library types relating to SwiftUI .

I will push up a new version which removes the explicit library type (so by default this won't be an issue), however force linking to the static/dynamic versions will have the same issue.

dagronf commented 1 year ago

See: https://github.com/dagronf/QRCode/issues/5

dagronf commented 1 year ago

A new version 4.5.0 is available -- if you update your package(s) you should get the new version.

This new version :-

Please let me know if this helps with your issue.

dagronf commented 1 year ago

@kmkarim did this fix your issue?

dagronf commented 1 year ago

Closed due to inactivity and lack of feedback. 4.5.0 should help with this.