withEscapedDependencies
doesn't work sometimes.
#166
Replies: 6 comments
-
There are two debug screens, I used a breakpoint to figure out what happened. |
Beta Was this translation helpful? Give feedback.
-
When I move my |
Beta Was this translation helpful? Give feedback.
-
Hi @dankinsoid, can you please provide a reproduction of the problem without using Tuist in order to rule out a problem with that tool? We’ve had reports in the past of problems that turned out to be a subtlety of using Tuist. |
Beta Was this translation helpful? Give feedback.
-
@mbrandonw I tried to reproduce the issue without tuist twice and failed. |
Beta Was this translation helpful? Give feedback.
-
Hi @dankinsoid, in that case I am going to convert this to a discussion. If I have time later to take a look I will, but maybe someone more familiar with Tuist can look into it too. |
Beta Was this translation helpful? Give feedback.
-
There have been other discussions about Tuist that you may find helpful: #75 (comment) |
Beta Was this translation helpful? Give feedback.
-
Description
I encountered a strange bug.
I've created a "Command" wrapper for closures and added an extension to capture dependencies with
withEscapedDependencies
. This extension only worked after I moved it to the same target where it's used.To reproduce the issue, I first attempted in a clean SPM package but failed. Then, I set up a tuist project similar to my app, where the bug reappeared, but only in the test target, whereas in my original project, it manifested in the app itself.
Checklist
main
branch of this package.Expected behavior
withEscapedDependencies
works properly everywhere.Actual behavior
Dependencies are lost.
Steps to reproduce
tuist fetch
tuist generate
test_escaped_dependencies
tests. Bug is unstable, sometimes tests passes, cleaning build folder helps.Dependencies version information
1.1.5
Destination operating system
iOS 17
Xcode version information
15.0.1
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions