Skip to main content
All CollectionsKnowledge BaseiOS
Error: "SwiftLintPlugin" must be enabled before it can be used
Error: "SwiftLintPlugin" must be enabled before it can be used
Updated over a week ago

Issue

You are receiving the following error message during your build when using the SwiftLint plugin:

error: "SwiftLintPlugin" must be enabled before it can be used

Possible solutions

You must trust and enable the SwiftLint plugin during your build to resolve this error.

You can do so by adding the following flag to your xcodebuild configuration: -skipPackagePluginValidation.

Alternatively, you can use a Script Step to skip the validation of the digital signatures of package plugins. Add a Script Step with the following code to your Workflow before the Xcode Step with the error:

defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES

If the error persists after you tried the above solutions, you can check the SwiftLint GitHub page and try out different SwiftLint versions.

Did this answer your question?