Skip to content

XCode Repeatedly Crashing After Plugin Installation #6270

@d42ohpaz

Description

@d42ohpaz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    helpQuestions or user problems that require more explanation rather than code changes.repro-neededIssues that cannot be reproduced or miss proper descriptive examples.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions