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

Update Package.swift to use Swift 5+ #46

Closed
yaroslav-zhurakovskiy opened this issue Nov 19, 2019 · 3 comments
Closed

Update Package.swift to use Swift 5+ #46

yaroslav-zhurakovskiy opened this issue Nov 19, 2019 · 3 comments

Comments

@yaroslav-zhurakovskiy
Copy link

Upgrade Package.swift so it can take advantage of the latest features.

  • Use swift-tools-version:5+ instead of swift-tools-version:4.2
  • Add "platform" parameter to the package declaration
  • Add "swiftLanguageVersions" parameter to the package declaration

Documentation references:
https://developer.apple.com/documentation/swift_packages/package
https://developer.apple.com/documentation/swift_packages/platform
https://developer.apple.com/documentation/swift_packages/package/3197887-swiftlanguageversions
https://developer.apple.com/documentation/swift_packages/swiftversion

@fulldecent
Copy link
Owner

Right now I am seeing 5.1 at https://github.com/fulldecent/swift5-module-template/blob/master/xxPROJECTxNAMExx/Package.swift#L1

Are you seeing 4.2 somewhere?


Regarding platform and swiftLanguageVersions. Perhaps we can add a note into the Package.swift file. But since this is a default file intended to be used by everybody programming in Swift then perhaps we should not limit the default by choosing these defaults.

@yaroslav-zhurakovskiy
Copy link
Author

Sorry, I just added the issue concerning the usage of new parameters. I though it was using the old version of swift because I did not see "platform" param.

@fulldecent
Copy link
Owner

thank you, closing

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