New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-12210] [5.2] Target depends on an unknown package #4593
Comments
@swift-ci create |
Can you try with the latest snapshot? We've fixed some bugs in this area and improved the diagnostics. |
Comment by Jonny (JIRA) Im also getting this with 5.2 but slightly different package: import PackageDescription
let package = Package(
name: "app",
platforms: [
.macOS(.v10_14)
],
products: [
.executable(name: "Run", targets: ["Run"]),
.library(name: "App", targets: ["App"]),
],
dependencies: [
// � A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0-beta.2"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.0.0-beta.2"),
.package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.0.0-beta.3"),
],
targets: [
.target(name: "App", dependencies: ["Fluent", "FluentPostgresDriver", "Vapor"]),
.target(name: "Run", dependencies: ["App"]),
.testTarget(name: "AppTests", dependencies: ["App", "XCTVapor"])
]
)
I don't think anything is mis-configured as it builds with 5.1 tools. This is using 11.4 beta 2 (11N123K) 🙂 |
Comment by Ellen Shapiro (JIRA) This is still happening on the final released version of Swift 5.2 in Xcode 11.4. Swift forums thread: https://forums.swift.org/t/package-names-in-swift-5-2/34886 Bug on my library: apollographql/apollo-ios#1102 I attempted to change the `name` of the package on a branch, and while the `Package.resolved` picked up that name, I'm still getting the `unknown package in dependencies of target` error message |
Environment
Apple Swift version 5.2 (swiftlang-1103.0.22 clang-1103.0.22)
Target: x86_64-apple-darwin19.2.0
https://swift.org/builds/swift-5.2-branch/xcode/swift-5.2-DEVELOPMENT-SNAPSHOT-2020-02-14-a/swift-5.2-DEVELOPMENT-SNAPSHOT-2020-02-14-a-osx.pkg
Version 11.4 beta (11N111s)
Toolchain: Swift 5.2 Snapshot 2020-02-14 (a)
macOS 10.15.2
Additional Detail from JIRA
md5: 8ed4f7d56eceb94fbbf6b4ed97820af7
Issue Description:
I'm getting the following error when upgrading my `swift-tools-version` from 5.1 to 5.2:
Here's the Package.swift file:
The text was updated successfully, but these errors were encountered: