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

App: fix build error caused by SwiftPM version difference #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clkbng
Copy link

@clkbng clkbng commented Mar 10, 2023

My App's Network Extension causes the following error, depends on public remote SwiftPM package.

Invalid manifest

/(path_to)/TemporaryFile.hzdchM.swift:9:17: error: 'v12' is unavailable
.macOS(.v12),
^~~
PackageDescription.SupportedPlatform:18:27: note: 'v12' was introduced in PackageDescription 5.5
public static let v12: PackageDescription.SupportedPlatform.MacOSVersion
^
/(path_to)/TemporaryFile.hzdchM.swift:10:15: error: 'v15' is unavailable
.iOS(.v15)
^~~
PackageDescription.SupportedPlatform:65:27: note: 'v15' was introduced in PackageDescription 5.5
public static let v15: PackageDescription.SupportedPlatform.IOSVersion
^ in https://git.zx2c4.com/wireguard-apple

As error message says, MacOSVersion.v121 and IOSVersion.v152 are available in PackageDescription 5.5 and above, but Package.swift still specifies SwiftPM version 5.3.
So, we must bump the swift-tools-version as well.

Footnotes

  1. https://developer.apple.com/documentation/packagedescription/supportedplatform/macosversion/v12

  2. https://developer.apple.com/documentation/packagedescription/supportedplatform/iosversion/v15

'MacOSVersion.v12' and 'IOSVersion.v15' are available in PackageDescription 5.5 and above.
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

Successfully merging this pull request may close these issues.

1 participant