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-11088] Ambiguous Error when Dependency Specifies Incompatible Platform Version #4854

Closed
swift-ci opened this issue Jul 8, 2019 · 1 comment

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Jul 8, 2019

Previous ID SR-11088
Radar None
Original Reporter calebkleveter (JIRA User)
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Improvement, StarterBug
Assignee None
Priority Medium

md5: 145e23ce20674520c2229eada0ef08b8

Issue Description:

  1. Create an SPM library.

  2. Give the library a minimum platform version (such as macOS 10.13).

  3. Create an SPM executable, using the library as a dependency.

  4. Build the executable project.

You'll get an error that looks something like this:

error: the product 'Dependency' requires minimum platform version 10.13 for macos platform

This error can be confusing, since it doesn't have to do with your current platform version. To fix it, you have to set the minimum platform version of the executable. It would make more sense if the error said something like this:

error: the executable 'Executable' has a minimum platform version lower than macos 10.13, which is required by the product 'Dependency'
@swift-ci
Copy link
Contributor Author

swift-ci commented Jul 9, 2019

Comment by Zsolt Török (JIRA)

I created a PR where I replace the confusing diagnostic with the suggested one.

@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
None yet
Projects
None yet
Development

No branches or pull requests

1 participant