Thanks! Great video. One quick note, if you want to have SwiftLint make the corrections in Xcode, add "autocorrect" to the "swiftlint" command in the script. @26:11
So awesome! I had used this about 2 years ago when I first started learning as part of HWS+ Portfolio Project. I thought about it 2 weeks ago and had it on my list to check out how to get it done but as usual you were way ahead of me! Such a great explanation of features and easy instructions on getting it done. Thanks Stewart!
Thank you, Stewart!! Great video!! I was trying to set up SwiftLint using SPM, but this is MUCH easier! I also like the command line option, although I like and prefer the visual feedback I get while using the build script phase much better. Thanks again! 😃
Hey Stewart, been busy completing the iOS app and then converting it to run on macOS. Completely forgot to perform regular SwiftLints. My Bad! Like some others, can't seem to get it to work with Xcode 16.
Thank you so much this is great value. I have a question. When I add the run script and build the project I get this error: "Command PhaseScriptExecution failed with a nonzero exit code" Any idea of how to solve this?
@@StewartLynch It's weird, if I get rid of the lint errors, for example if I fix the force unwrap issues and the uppercase property issue, then the Demo project builds but still I don't get the yellow warnings inside Xcode. I want to point out though that I get these issues just with the Demo project I downloaded from your video description, I added the run script to one of my projects and it works just fine 🤔
This is not "mastering", it is just a usage tutorial. But a really good tutorial.
Apologies then. Perhaps I should have called it “Discovering” SwiftLint.
I’ve used swiftlint for years as a run script. Never seen it used from the command line. That was interesting, thanks.
Thanks! Great video. One quick note, if you want to have SwiftLint make the corrections in Xcode, add "autocorrect" to the "swiftlint" command in the script. @26:11
Great. Thanks for that Karl
Good point
Very descriptive tutorial. it's gold! Thank you! 🙏
So awesome! I had used this about 2 years ago when I first started learning as part of HWS+ Portfolio Project. I thought about it 2 weeks ago and had it on my list to check out how to get it done but as usual you were way ahead of me! Such a great explanation of features and easy instructions on getting it done. Thanks Stewart!
Thank you, Stewart!! Great video!! I was trying to set up SwiftLint using SPM, but this is MUCH easier! I also like the command line option, although I like and prefer the visual feedback I get while using the build script phase much better. Thanks again! 😃
Fantastic - I am grateful for this and the effort you put into it.
My pleasure!
Hey Stewart, been busy completing the iOS app and then converting it to run on macOS. Completely forgot to perform regular SwiftLints. My Bad! Like some others, can't seem to get it to work with Xcode 16.
You are a very good teacher!!! Thanks
Thank you 🙏
Great video. Very useful.
Great and very detailed video.
Thanks Flo
Excelente! I had a lot of troubles in my mind to set this up, you made it easy to get... thank you! How can I use it with vim?
I have not use Vim in Xcode so I am afraid I can’t help here.
@@StewartLynch Finally I could do it, and it's nice. Thanks for answering
oh WOW - I never knew about the FIX subcommand for Lint.
Thank you so much this is great value. I have a question. When I add the run script and build the project I get this error: "Command PhaseScriptExecution failed with a nonzero exit code" Any idea of how to solve this?
Not really. This is a pretty generic error that I get all the time and solve by cleaning derived data but not sure it will help here.
@@StewartLynch It's weird, if I get rid of the lint errors, for example if I fix the force unwrap issues and the uppercase property issue, then the Demo project builds but still I don't get the yellow warnings inside Xcode. I want to point out though that I get these issues just with the Demo project I downloaded from your video description, I added the run script to one of my projects and it works just fine 🤔
Steward, after installing "Homebrew" and SwiftLint I got this error message: ...UltimatePortfolio % swiftlint
UltimatePortfolio % swiftlint
SourceKittenFramework/library_wrapper.swift:31: Fatal error: Loading sourcekitd.framework/Versions/A/sourcekitd failed
zsh: trace trap swiftlint
I am afraid I have never see that error. I have no idea what that means. Sorry. UltimatePorfolio is one of Paul Hudson's HWS+ projects isn't it?
@@StewartLynch yes, lesson 24, linting our code. I followed the instructions on my new MacBook Pro Laptop
Perhaps you could ask the question on the HWS forum.