Swift lint is broken in Xcode 11.4

Description of the issue

Xcode 11.4 breaks SwiftLint (presumably because of SwiftLint itself)


Xcode 11.4 macOS 10.15

If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)



  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • Does the issue happen sporadically, or every time? : Everytimee
  • Does upgrading the build Step to the latest version help? : No
  • When did the issue start? : Switching to new stack.

Local reproduction


Build log

| (4) swiftlint |
| id: swiftlint |
| version: 0.4.2 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2020-02-19T15:08:05Z |
| |
INFO[15:08:05] * [OK] Step dependency (swiftlint) installed, available.

  • ‘[’ -z ./ ‘]’
  • FLAGS=
  • ‘[’ no = yes ‘]’
  • ‘[’ -s /Users/vagrant/git/.swiftlint.yml ‘]’
  • FLAGS=’ --config /Users/vagrant/git/.swiftlint.yml’
  • cd ./
  • swiftlint lint --reporter xcode --config /Users/vagrant/git/.swiftlint.yml
    dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib
    Referenced from: /usr/local/bin/swiftlint
    Reason: image not found
    /var/folders/rs/8ykplzp13y32gt248qlp_1240000gn/T/bitrise962521225/step_src/step.sh: line 22: 2250 Abort trap: 6 swiftlint lint --reporter “${reporter}” ${FLAGS}
    | |
    | x | swiftlint (exit code: 134) | 3.15 sec |
    | Issue tracker: https://github.com/kimdv/bitrise-step-swiftlint/issues |
    | Source: https://github.com/kimdv/bitrise-step-swiftlint |

Hey there @kylebrowning!

Seems like this is an issue with SwiftLint, could you please raise a Github issue for them? :slight_smile:

@Roland-Bak, I linked the already created ticket.

Actually, it appears this issue has been resolved in SwiftLint 0.39.1

How do we upgrade SwiftLint?

Hi @kylebrowning!

SwiftLint is a community created step, so we do not maintain it. Can you raise this issue on the step’s repository? You can find it here: https://github.com/kimdv/bitrise-step-swiftlint

@bitce, there’s nothing in that repo that does anything with brew. Unless im missing something It just provides configs for an existing system command swiftlint

So it seems the image we have for the 11.4 stack has it preinstalled? Or am I off base here?

I’ve resolved the issue myself by adding a brew up and brew install, but this is not ideal as it adds yet more time to my already existing 24 minute build times.

@kylebrowning, well swiftlint is definitely not pre-installed (see: https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xcode-11.4.x.log) so I was making the assumption that the step is installing the tool, but not entirely sure I haven’t actually seen the step in action yet. Either way, the breaking change would warrant a report there in my opinion, but we’ll get around that. Happy to hear you have a workaround :slight_smile:

@kylebrowning I’m pretty new to bitrise and wondering what you needed to do to get the workaround running. What did you add to do a brew up and brew install and when in the flow do you run this? TIA!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.