Skip to content

SwiftPM Build Tool Plugin excessively runs causing recompilation #305

Open
@Brett-Best

Description

@Brett-Best

I use https://github.com/liamnichols/xcstrings-tool, this essentially takes in inputs of *.xcstring and outputs *.swift.
Unfortunately, this is having a large impact on incremental builds where for some reason the build tool plugin runs every time.
This invalidates already compiled SwiftPM targets leading to a large incremental compile time of >100 seconds in a project I work on.

This issue can be reproduced using https://github.com/liamnichols/xcstrings-tool-demo.

I also notice that the CompileXCStrings job runs on every incremental build as well.

I've tested this using Xcode 16.2 and using Xcode 16.2 with latest main of swiftlang/swift-build at time of posting.

CC: @dschaefer2

Build DogTracker_2025-02-03T05-22-22.txt
Build DogTracker_2025-02-03T05-22-36.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions