realm / realm/SwiftLint

XCode Repeatedly Crashing After Plugin Installation

Open
#6,270 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help repro-needed
Dominant language
Swift
Stars
19.7k
Forks
2.3k
Avg merge
1d 1h
Merged PRs (30d)
11

Description

New Issue Checklist
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:

  1. File > Add Package Dependencies
  2. Paste https://github.com/realm/SwiftLint.git into the search box
  3. Using the defaults, clicked Add Package
    • Dependency Rule: Up to Next Major Version (0.61.0 < 1.0.0)
    • Add to Project (My Project)
  4. Under Choose Package Products for SwiftLint.git, click Add Package
    • SwiftLintFramework/Library left Add to Target blank
    • swiftlint/Executable left Add to Target blank
  5. Open my .xcodeproj file, select Build Phases
  6. Select my project as the Target
  7. Under Run Build Tool Plug-ins click the +
  8. Select SwiftLintBuildToolPlugin and clicked Add
  9. Built the project and got Build Failed (expected)
  10. Went to Warning section of XCode and Trust & Enable All for SwiftLint
  11. 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.

XCode Crash Dump.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.