You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'tuist cache' fails when there are targets without sources that return non zero result
I use .macos targets in my iOS project for supplementary tools (eg: swiftlint, periphery) because tuist doesn't support aggregate targets #3388
So when I run tuist cache it tries to build them too and fails (it also runs very slowly for some of them, and they don't produce a cacheable result)
This forces me to provide a list of all normal iOS targets if I want to cache them all
Hi @voidless 👋🏼
Would you mind including a small project where we can reproduce the issue? We can then use that as a fixture to prevent regressions in the future.
I slept over this one, and I propose that we tackle this issue over adding the functionality described in this issue because having to have targets with no sources is a solution for a limitation that's becoming a problem on its own (this reminds me of JavaScript 😝). So, I'll close this one to continue discussing that other issue. We won't need something like this once we have support for aggregate targets because cache will only compile targets with sources.
What problem or need do you have?
'tuist cache' fails when there are targets without sources that return non zero result
I use .macos targets in my iOS project for supplementary tools (eg: swiftlint, periphery) because tuist doesn't support aggregate targets #3388
So when I run
tuist cache
it tries to build them too and fails (it also runs very slowly for some of them, and they don't produce a cacheable result)This forces me to provide a list of all normal iOS targets if I want to cache them all
Potential solution
--platform
param to tuist cache (eg:tuist cache --platform iOS
)macOS version
14.4.1
Tuist version
4.13.0
Xcode version
15.3.0
The text was updated successfully, but these errors were encountered: