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 #12

Merged
merged 1 commit into from May 5, 2020
Merged

Conversation

MaxDesiatov
Copy link
Contributor

Currently, when trying to build SKQueue with Swift 5.2.2 from Xcode 11.4.1, I get this error:

.build/checkouts/SKQueue: error: manifest parse error(s):
.build/checkouts/SKQueue/Package.swift:5:15: error: 'init(name:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' 
is unavailable
let package = Package(
              ^~~~~~~
PackageDescription.Package:30:12: note: 'init(name:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' 
was introduced in PackageDescription 4.2
    public init(name: String, pkgConfig: String? = nil, providers: [PackageDescription.SystemPackageProvider]? = nil, products: [PackageDescription.Product] = [], dependencies: [PackageDescription.Package.Dependency] = [], targets: [PackageDescription.Target] = [], swiftLanguageVersions: [PackageDescription.SwiftVersion]? = nil, cLanguageStandard: PackageDescription.CLanguageStandard? = nil, cxxLanguageStandard: PackageDescription.CXXLanguageStandard? = nil)

Bumping swift-tools-version in Package.swift to 4.2 fixes the problem.

@daniel-pedersen
Copy link
Owner

Thanks @MaxDesiatov !

@daniel-pedersen daniel-pedersen merged commit 08faecd into daniel-pedersen:master May 5, 2020
@MaxDesiatov MaxDesiatov mentioned this pull request May 5, 2020
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.

None yet

2 participants