rnine / SimplyCoreAudio

🔊 A Swift framework that aims to make Core Audio use less tedious in macOS
MIT License
435 stars 68 forks source link

Adding package causes SwiftUI previews to fail #71

Closed kkostov closed 2 years ago

kkostov commented 2 years ago

Adding SimplyCoreAudio to a new SwiftUI project as a dependency causes SwiftUI Previews to fail with the following diagnostic message:

Xcode 14.0 (14A309), macOS 12.6 (21G115)

HumanReadableSwiftError

SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x000060000eaa7450):'SimplyCoreAudio'>
Screenshot 2022-09-24 at 05 18 02

I believe the issue is caused by the Package.swift setting the library type to static. According to the docs, explicit setting of .dynamic or .static should only be used if the library is only capable of functioning that way.

rnine commented 2 years ago

Merged. Thanks!