added swiftlint plugin is not recognised by xcode


please help me.

iMac 27″ 5K, macOS 12.6

Posted on Jul 9, 2023 3:17 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 9, 2023 9:16 AM

You’re going to have to either provide more details (which of the various installs, package, homebrew, etc), or work through the install and configuration issue locally.


Here are the project installation and usage instructions: https://github.com/realm/SwiftLint


Here is an installation and usage video: https://www.youtube.com/watch?v=9Z1nTMTejqU


There are various (diverging) installation paths leading up to the part of the Xcode plug-in installation shown above, so I don’t have a certain way to reproduce this.


And I’m not particularly sure what part of what you’re reporting is not working, without loading and configuring the tool, and there are a half-dozen or so different ways to install this tool. I’m also running a newer version of Xcode than you are too, based on the macOS 12.6 version shown in the footer.


As a test, does invoking swiftlint at the command line work in your current installation environment?

swiftlint help


The project does have an issue tracker, but they’ll likely expect a rather more detailed bug report. Including the version of Xcode involved.

3 replies
Question marked as Top-ranking reply

Jul 9, 2023 9:16 AM in response to haashim786

You’re going to have to either provide more details (which of the various installs, package, homebrew, etc), or work through the install and configuration issue locally.


Here are the project installation and usage instructions: https://github.com/realm/SwiftLint


Here is an installation and usage video: https://www.youtube.com/watch?v=9Z1nTMTejqU


There are various (diverging) installation paths leading up to the part of the Xcode plug-in installation shown above, so I don’t have a certain way to reproduce this.


And I’m not particularly sure what part of what you’re reporting is not working, without loading and configuring the tool, and there are a half-dozen or so different ways to install this tool. I’m also running a newer version of Xcode than you are too, based on the macOS 12.6 version shown in the footer.


As a test, does invoking swiftlint at the command line work in your current installation environment?

swiftlint help


The project does have an issue tracker, but they’ll likely expect a rather more detailed bug report. Including the version of Xcode involved.

Jul 9, 2023 10:37 PM in response to MrHoffman

I have installed the swiftlint from my private repo taken reference from this url https://github.com/lukepistrol/SwiftLintPlugin (copy pasted the same code from this repo to my private repo ) and installed it through SPM (In Xcode , File -> Add Packages then enter the repo url with branch) and then in build phases under "Run Build Tool Plugin" I added swiftlint (you can see in the above image). When I build the project, the errors/warning configured from .swiftlint.yml are not shown in my Xcode.


But when I add the package from my local machine I'm getting the below image.


When I build this, Xcode shows the errors/warnings configured according to .swiftlint.yml file..


Please help me regarding this. I want to access the code through my private repo only. But while adding in "Run Build Tool Plugins" It is showing the same thing which I attached the image before.


I don't know the solution for this. Help me

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

added swiftlint plugin is not recognised by xcode

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.