I have a package with two products and two targets, which have different names, but the package graph won’t resolve. Anyone know why it might think there’s two targets with the same name when there isn’t?
Could not resolve package graph. Cannot continue.
multiple targets named 'AppModule' in: 'examplekit', 'temporarypackagebuild-99f78d06-b5a3-418d-b906-75d721c6b6d4'; consider using the `moduleAliases` parameter in manifest to provide unique names
Package.swift
// swift-tools-version: 5.8
// WARNING:
// This file is automatically generated.
// Do not edit it by hand because the contents will be replaced.
import PackageDescription
import AppleProductTypes
let package = Package(
name: "Example",
platforms: [
.iOS("16.0")
],
products: [
.library(
name: "ExampleKit",
targets: ["ExampleKit"]
),
.iOSApplication(
name: "ExampleApp",
targets: ["AppModule"],
displayVersion: "1.0",
bundleVersion: "1",
appIcon: .placeholder(icon: .tv),
accentColor: .presetColor(.brown),
supportedDeviceFamilies: [
.pad,
.phone
],
supportedInterfaceOrientations: [
.portrait,
.landscapeRight,
.landscapeLeft,
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
]
)
],
targets: [
.target(
name: "ExampleKit",
dependencies: []
),
.executableTarget(
name: "AppModule",
dependencies: ["ExampleKit"],
swiftSettings: [
.enableUpcomingFeature("BareSlashRegexLiterals")
]
)
]
)