SwiftUI Preview unstable when using dynamic SPM package

I have the following package named journal. Its purpose is to print logs. It's only about 30 lines of code.

// swift-tools-version: 5.7

import PackageDescription

let package = Package(
    name: "journal",
    products: [
            name: "Journal",
            type: .dynamic,
            targets: ["Journal"]),
    dependencies: [
        .package(url: "https://github.com/apple/swift-log.git", .upToNextMinor(from: "1.4.4"))
    targets: [
        .target(name: "Journal", dependencies: [.product(name: "Logging", package: "swift-log")])

I need it within a macOS framework target.

I also need it in the macOS App target.

Previews in the macOS app target claim 'Journal.framework' is missing. Which is confusing because it's not a framework.

You can find it here GitHub - nashysolutions/Journal: A custom log handler for swift-log

Facing similar issue with GitHub - exyte/Chat: A SwiftUI Chat UI framework with fully customizable message cells and a built-in media picker

I found a solution here xcode11 - Swift Package Manager dynamic library - Stack Overflow