Skip to content

Xcode cannot resolve package dependencies for Swift Package project with version 0.50.0 #4558

Closed
@engineeric

Description

New Issue Checklist

Describe the bug

When trying to use SwiftLint 0.50.0 in a Swift Package project, Xcode 14.1 fails to resolve dependencies because SwiftLint is dependent on an unstable version of SwiftSyntax.

Environment

  • SwiftLint version 0.50.0
  • Xcode 14.1
  • Swift Package Manager
.package(url: "https://github.com/realm/SwiftLint.git", from: "0.50.0")

Error: "Failed to resolve dependencies Dependencies could not be resolved because root depends on 'swiftlint' 0.50.0..<1.0.0.
'swiftlint' >= 0.50.0 cannot be used because no versions of 'swiftlint' match the requirement 0.50.1..<1.0.0 and package 'swiftlint' is required using a stable-version but 'swiftlint' depends on an unstable-version package 'swift-syntax'."

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions