Skip to content

libswift_Concurrency.dylib not found on macOS 10.15 & macOS 11 #4131

@miketimofeev

Description

@miketimofeev

New Issue Checklist

Describe the bug

Invoking swiftlint version on 0.49.0 produces an error:
dyld: Library not loaded: /usr/lib/swift/libswift_Concurrency.dylib Referenced from: /usr/local/bin/swiftlint Reason: image not found on macOS 10.15 and macOS 11. macOS 12 works fine though.

Complete output when running SwiftLint, including the stack trace and command used

n\a

Environment

We install swiftling using portable package via the installation script https://github.com/actions/runner-images/blob/main/images/macos/provision/core/swiftlint.sh

  • Are you using nested configurations?
    If so, paste their relative paths and respective contents.
  • Which Xcode version are you using (check xcodebuild -version)?
  • Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
    to quickly test if your example is really demonstrating the issue. If your example is more
    complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
// This triggers a violation:
let foo = try! bar()

Metadata

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