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

Subsequent builds after first build always fail #1117

Open
zain-q-qwake opened this issue Apr 22, 2024 · 0 comments
Open

Subsequent builds after first build always fail #1117

zain-q-qwake opened this issue Apr 22, 2024 · 0 comments

Comments

@zain-q-qwake
Copy link

Versions

SwiftGen ~> 6.5.1
Xcode ~> 15.1, 15.3
MacOS ~> Ventura (13.6.3), Sonoma (14.4.1)
iOS ~> 16.0

Issue

I'm using SwiftGen to generate classes for Assets, JSON, Strings. Its a fairly standard implementation.

The first build succeeds without issue. Any subsequent builds fail. The build errors are mostly consistent but sometimes change to similar ones.

The error got more verbose in Xcode 15.3, which led me to try deleting the generated files before rebuilding (which solved the issue).

The workaround I am using is to have a pre-action in my build scheme to delete the generated files.

What is the root cause of this issue?

Xcode 15.1 error:
Screenshot 2024-04-22 at 3 35 11 PM

Xcode 15.3 error:
Screenshot 2024-04-22 at 3 36 11 PM

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

1 participant