TCA crash : Release build with dynamic frameworks app #1680
Replies: 2 comments 4 replies
-
Hi @PierreCapo, it is not clear that this is an issue with the library. The project works fine when putting all the files into a single target. So, I am going to move it to a discussion and maybe someone who has experience with Tuist can help out. I would also suggest asking on Tuist's discussions. It could be an issue in Tuist, Xcode or maybe even Swift. |
Beta Was this translation helpful? Give feedback.
-
I think TCA is not good with dynamic framework. i tried your test repo with staticFramework and it worked. https://github.com/PierreCapo/tca-frameworks-bug/blob/main/src/FeatureSettings/Project.swift#L22 - product: .framework,
+ product: .staticFramework, |
Beta Was this translation helpful? Give feedback.
-
Description
We are currently using TCA along with Tuist in our application. In particular, a bit a la isowords we have split our app in multiple frameworks. However, in release builds (debug works fine), TCA crashes when some reducers are in different frameworks. This is the graph of how we have set up the app to reproduce the bug.
Thanks in advance for the help 🙌
Checklist
main
branch of this package.Expected behavior
App shouldn't crash in Release mode
Actual behavior
App crashes in release mode. See attached video:
sample.mp4
Steps to reproduce
For simplicity and clarity, I have created a minimal project to reproduce the bug : https://github.com/PierreCapo/tca-frameworks-bug.
You can follow the video attached to exactly reproduce the crash.
The Composable Architecture version information
0.45.0
Destination operating system
iOS 14 +
Xcode version information
14.0
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions