XCode Repeatedly Crashing After Plugin Installation
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 19.7k
- Forks
- 2.3k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 11
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the attached XCode Crash Dump.txt alongside the SwiftLintBuildToolPlugin installation and build steps described in the issue. Reproduce the crash with SwiftLint 0.61.0 and Xcode 26.0.1 if possible, then trace the failure to the relevant plugin or integration entry point. Done means identifying the cause and confirming that installing, building, and enabling the plugin no longer crashes Xcode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100