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

Tuist cache and generate are broken #6038

Closed
dogo opened this issue Mar 6, 2024 · 8 comments · Fixed by #6039
Closed

Tuist cache and generate are broken #6038

dogo opened this issue Mar 6, 2024 · 8 comments · Fixed by #6039
Labels
type:bug Something isn't working

Comments

@dogo
Copy link
Contributor

dogo commented Mar 6, 2024

What happened?

Since Tuist 4.5.0 I'm not able to generate the cache of my dependencies or generate the project

Tuist installed using mise

How do we reproduce it?

Clone the repo:
https://github.com/dogo/swdestiny-trades

tuist install
tuist cache or tuist generate

Error log

tuist cache
Loading and constructing the graph
It might take a while if the cache is empty
[1]    34564 illegal hardware instruction  tuist cache 
tuist generate
Loading and constructing the graph
It might take a while if the cache is empty
[1]    36709 illegal hardware instruction  tuist generate

macOS version

14.3.1

Tuist version

4.5.1

Xcode version

15.2

@dogo dogo added the type:bug Something isn't working label Mar 6, 2024
@dogo dogo changed the title Tuist cache is broken Tuist cache and generate are broken Mar 6, 2024
@mustiikhalil
Copy link
Collaborator

I have a similar issue however the Error log is a simple trace without any other explanation

@pepicrft
Copy link
Contributor

pepicrft commented Mar 6, 2024

Just to be sure, are you both using Xcode 15.2? Or the recently-released Xcode 15.3?

@dogo
Copy link
Contributor Author

dogo commented Mar 6, 2024

Just to be sure, are you both using Xcode 15.2? Or the recently-released Xcode 15.3?

Xcode 15.2

@pepicrft
Copy link
Contributor

pepicrft commented Mar 6, 2024

I was able to reproduce it. I'm looking into it.

@mustiikhalil
Copy link
Collaborator

tuist generate
Loading and constructing the graph
It might take a while if the cache is empty
[1]    61699 trace trap  tuist generate
swift package --package-path {path}/.build/checkouts/NetworkImage/Demo dump-package
swift package --package-path {path}/.build/checkouts/Quick/Externals/Nimble/Carthage/Checkouts/CwlPreconditionTesting dump-package
Target PiwikPROSDK of type binary ignored
[1]    62415 trace trap  tuist generate --verbose

xcode 15.2

@fortmarek
Copy link
Member

Try to remove the projects glob in the Workspace.swift if you don't need it. Otherwise, the fix for this is here: #6039

We'll do a patch release once merged

@fortmarek
Copy link
Member

I'd also recommend rewriting the glob, so that it won't try to find projects everywhere (./** will glob the whole directory which takes time). This also negatively impacts your generation time and it's something that should be generally avoided.

@dogo
Copy link
Contributor Author

dogo commented Mar 6, 2024

Removing the projects glob, fixed the issue. Thanks @fortmarek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants