Hi,
I have an app for iOS/iPadOS that I've recently converted to support Mac Catalyst. The app used to run fine using an older version of Xcode, but now when I try and run the app on Xcode Version 11.4.1 (11E503a), I get the following error for 4 of my dependencies:
error: multiple configured targets of 'XXXX' are being created for macOS
I'm not sure how to fix this. The app runs fine on iOS and iPadOS.
Here's a Package.swift for one of my dependencies:
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "MDFToolbox",
platforms: [
.macOS(.v10_13), .iOS(.v12), .tvOS(.v12), .watchOS(.v3)
],
products: [
.library(name: "MDFToolbox", type: .dynamic, targets: ["MDFToolbox"]),
.library(name: "MDFToolboxMocks", type: .dynamic, targets: ["MDFToolboxMocks"])
],
dependencies: [
.package(url: "git@github.com:mpdifran/Swinject.git", from: "2.7.0"),
],
targets: [
.target(name: "MDFToolbox", dependencies: ["Swinject"]),
.target(name: "MDFToolboxMocks", dependencies: ["MDFToolbox"]),
//.testTarget(name: "MDFToolboxTests", dependencies: ["MDFToolbox"])
]
)