Closed kkostov closed 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'>
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.
static
.dynamic
.static
Merged. Thanks!
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)
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.