ReactiveReSwift icon indicating copy to clipboard operation
ReactiveReSwift copied to clipboard

Update your swift package manifest please.

Open jonah-neugass-ck opened this issue 5 years ago • 1 comments
trafficstars

Your swift package manifest doesn't work with new versions of Xcode.

jonah-neugass-ck avatar Jan 04 '20 00:01 jonah-neugass-ck

Beats me to fix the Package.swift. I think one would have to re-organize the code folder for multi-platform manifests, or change the project to have 1 target for all platforms. That seems to work for ReSwift.

Here's how far I came in my experiments, in case someone wants to pick this up in a PR:

// swift-tools-version:5.1
import PackageDescription

let package = Package(
    name: "ReactiveReSwift",
    products: [
        .library(
            name: "ReactiveReSwift",
            targets: ["ReactiveReSwift-iOS"]),
        .library(
            name: "ReactiveReSwift",
            targets: ["ReactiveReSwift-macOS"]),
        .library(
            name: "ReactiveReSwift",
            targets: ["ReactiveReSwift-tvOS"]),
        .library(
            name: "ReactiveReSwift",
            targets: ["ReactiveReSwift-watchOS"])
    ],
    targets: [
        .target(
            name: "ReactiveReSwift-iOS",
            path: "Sources",
            sources: ["."]
        ),
        .target(
            name: "ReactiveReSwift-macOS",
            path: "Sources",
            sources: ["."]
        ),
        .target(
            name: "ReactiveReSwift-tvOS",
            path: "Sources",
            sources: ["."]
        ),
        .target(
            name: "ReactiveReSwift-watchOS",
            path: "Sources",
            sources: ["."]
        ),

        .testTarget(
            name: "ReactiveReSwift-iOSTests",
            dependencies: ["ReactiveReSwift-iOS"],
            path: "Tests",
            sources: ["."]
        ),
        .testTarget(
            name: "ReactiveReSwift-macOSTests",
            dependencies: ["ReactiveReSwift-macOS"],
            path: "Tests",
            sources: ["."]
        ),
        .testTarget(
            name: "ReactiveReSwift-tvOSTests",
            dependencies: ["ReactiveReSwift-tvOS"],
            path: "Tests",
            sources: ["."]
        ),
        .testTarget(
            name: "ReactiveReSwift-watchOSTests",
            dependencies: ["ReactiveReSwift-watchOS"],
            path: "Tests",
            sources: ["."]
        ),
    ]
)

DivineDominion avatar Jan 04 '20 07:01 DivineDominion