-1

I found SwiftLint included it in my podfile and did a pod install.

I cannot find where to invoke it in my build phases. I would be grateful for pointers and maybe a line or two of clarification.

Blazej SLEBODA
  • 8,936
  • 7
  • 53
  • 93
user462990
  • 5,472
  • 3
  • 33
  • 35

1 Answers1

1

See the documentation, which tells you how to add the “Run Script” phase.

So, in short, when adding SwiftLint via CocoaPods, go to your target settings, “build phases”, tap on + button, add run script, and use this for the script:

"${PODS_ROOT}/SwiftLint/swiftlint"
Rob
  • 415,655
  • 72
  • 787
  • 1,044