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: [
.library(
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.