Hi guys, just updated to latest version of KMMBrid...
# touchlab-tools
i
Hi guys, just updated to latest version of KMMBridge but the config below generated Package.swift not as expected which missing - .iOS(.v14). am i do something wrong? created a ticket - https://github.com/touchlab/KMMBridge/issues/258
Copy code
spm(swiftToolVersion = "5.9") {
        iOS { v("14") }
        macOS { v("13") }
    }
generated Package.swift
Copy code
// swift-tools-version:5.9
import PackageDescription

let packageName = "shared"

let package = Package(
    name: packageName,
    platforms: [
         .macOS(.v13)
    ],
    products: [
        .library(
            name: packageName,
            targets: [packageName]
        ),
    ],
    targets: [
        .binaryTarget(
            name: packageName,
            path: "./shared/build/XCFrameworks/debug/\(packageName).xcframework"
        )
        ,
    ]
)
and just created a PR for the ticket - https://github.com/touchlab/KMMBridge/pull/259
k
Replied with comments. It's actually not a "bug", although the way it works now is open to debate: https://github.com/touchlab/KMMBridge/issues/258#issuecomment-2397473648 On the PR, changing how the platform output code works now would be straightforward and localized, without breaking KMMBridge API changes. The KMMBridge API design could be debated as well, but anything that would break existing config for post 1.x users is a bigger discussion. https://github.com/touchlab/KMMBridge/pull/259#issuecomment-2397481525