-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
helpQuestions or user problems that require more explanation rather than code changes.Questions or user problems that require more explanation rather than code changes.repro-neededIssues that cannot be reproduced or miss proper descriptive examples.Issues that cannot be reproduced or miss proper descriptive examples.
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Bug Description
I installed the SwiftLink plugin, and after building (and failing to build), XCode began to crash. Sometimes the crash would happen immediately after opening XCode, and sometimes it would take a minute or two. I do not have a .swiftlint file, so whatever default rules were being applied.
Here are the steps to installation, and configuration, that I used:
- File > Add Package Dependencies
- Paste
https://github.com/realm/SwiftLint.gitinto the search box - Using the defaults, clicked Add Package
- Dependency Rule: Up to Next Major Version (0.61.0 < 1.0.0)
- Add to Project (My Project)
- Under Choose Package Products for SwiftLint.git, click Add Package
- SwiftLintFramework/Library left Add to Target blank
- swiftlint/Executable left Add to Target blank
- Open my .xcodeproj file, select Build Phases
- Select my project as the Target
- Under Run Build Tool Plug-ins click the +
- Select
SwiftLintBuildToolPluginand clicked Add - Built the project and got Build Failed (expected)
- Went to Warning section of XCode and
Trust & Enable Allfor SwiftLint - Built again to get all warnings
The crashes started occurring after I began fixing the warnings based on SwiftLint's recommendations (e.g., not initializing optionals with nil, line length, etc). I have tried uninstalling and reinstalling, and the issue still occurs.
Environment
- SwiftLint version: 0.61.0
- Xcode version: Xcode 26.0.1 / Build version 17A400
- Installation method used: Add Package Dependencies
- Configuration file: none
Are you using nested configurations? No
If it will help, I have attached the crash log from XCode.
Metadata
Metadata
Assignees
Labels
helpQuestions or user problems that require more explanation rather than code changes.Questions or user problems that require more explanation rather than code changes.repro-neededIssues that cannot be reproduced or miss proper descriptive examples.Issues that cannot be reproduced or miss proper descriptive examples.