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

[Swift 5] swift build fails because it has a minimum platform requirement #31

Closed
ollieatkinson opened this issue Feb 8, 2019 · 5 comments

Comments

@ollieatkinson
Copy link

$ swift build --configuration release -Xswiftc -static-stdlib --disable-sandbox
error: the product 'Path' requires minimum platform version 10.0 for tvos platform
error: the product 'Path' requires minimum platform version 3.0 for watchos platform

Steps

  1. Clone something which depends on Path.swift (e.g. swift-sh)
  2. Execute swift build

Environment

  • Xcode 10.2 Beta
  • Swift 5

Am I missing something really obvious here or should this work?

@mxcl
Copy link
Owner

mxcl commented Feb 8, 2019

This is a bug in SwiftPM that I reported and is fixed in the next beta.

@mxcl
Copy link
Owner

mxcl commented Feb 8, 2019

You can workaround it by pinning to Path.swift@0.4.4

@mxcl
Copy link
Owner

mxcl commented Feb 13, 2019

I have fixed this by removing our platform requirements since they were the same as the defaults.

@mxcl mxcl closed this as completed Feb 13, 2019
@ollieatkinson
Copy link
Author

Confirmed working without pinning to 0.4.4 - awesome work!

@mxcl
Copy link
Owner

mxcl commented Feb 13, 2019

nps! If you found my help useful, please consider reimbursing my time by contributing to my Patreon. Thank you so much!

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

2 participants