Skip to content
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-5909] Product dependency not found #4949

Closed
Bouke opened this issue Sep 16, 2017 · 2 comments
Closed

[SR-5909] Product dependency not found #4949

Bouke opened this issue Sep 16, 2017 · 2 comments
Labels

Comments

@Bouke
Copy link
Contributor

Bouke commented Sep 16, 2017

Previous ID SR-5909
Radar None
Original Reporter @Bouke
Type Bug
Status Resolved
Resolution Invalid

Attachment: Download

Environment

Xcode 9 GM / Swift 4

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: a3b3093e3c6bc9d4d0ca8c44fc5ea2a3

Issue Description:

In my manifest I've added a dependency "SRP". This is linked to a target "HAP". When running `swift build`, I can see the dependency being pulled in. It is also listed in `Package.resolved`. However when building it complains "error: product dependency 'SRP' not found".

Attached you'll find the failing project.

@ankitspd
Copy link
Member

https://github.com/Bouke/SRP/blob/master/Package.swift

You can only refer to products of other packages and there is no product called "SRP" in this package so it says "error: product dependency 'SRP' not found".

You need to export a product called SRP and tag a new version:

...
products: [
    .library(name: "SRP", targets: ["SRP"]),
]
...

@Bouke
Copy link
Contributor Author

Bouke commented Sep 18, 2017

Yes thank you, that did solve the problem.

However I must say, that's one very confusing error message.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants