Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPM Build Tool Plugin excessively runs causing recompilation #8273

Open
Brett-Best opened this issue Feb 2, 2025 · 3 comments
Open

SPM Build Tool Plugin excessively runs causing recompilation #8273

Brett-Best opened this issue Feb 2, 2025 · 3 comments

Comments

@Brett-Best
Copy link

Brett-Best commented Feb 2, 2025

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 SPM 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

@dschaefer2 dschaefer2 transferred this issue from swiftlang/swift-build Feb 2, 2025
@dschaefer2
Copy link
Member

We'll start investigating this with the swift-package-manager.

@bcardarella
Copy link

Is there any update on this yet? We've seen re-build times go from seconds to well over 20 minutes due to what we suspect is this issue.

@dschaefer2
Copy link
Member

The example project is an Xcode project. We only deal with command line SwiftPM issues on GitHub. Can you reproduce this issue with a SwiftPM package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants