Replies: 1 comment
-
Hi @Lischen, it isn't likely this is a problem with the library, and instead a problem of how your project is configured. Are you sure it really only happens with Test Flight builds? Or is it more of a problem with release builds? Have you tried reproducing the problem when building locally for release? And if you reproduce it can you provide a minimal project that does so for us to look at. Since I don't think this is an issue with the library I am going to convert it to a discussion. Please feel free to continue the conversation over there! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Our App is quite modularised and most sub features are in its own package.
I noticed that in those few features the app crashes as soon as it accesses @dependency. I have tried commenting out piece by piece and when all @Dependecy references are removed it stops crashing. If I do an action like tap close, which is done via the Dependecy macro, it crashes. The dependencies are definitely set.
We think it is broken since 1.16
Checklist
main
branch of this package.Expected behavior
I expect it not to crash
Actual behavior
Reproducing project
The bug is just happening when being built via TestFlight. All crashes are Testflight builds.
I noticed that in those few features the app crashes as soon as it accesses @dependency. I have tried commenting out piece by piece and when all @Dependecy references are removed it stops crashing. If I do an action like tap close, which is done via a dependency, it crashes.
I understand that this could very well be an XCode linking issue and that it is suboptimal to not give a way to reproduce.
I tried several things:
All without luck.
I posted an small version of the breaking feature below. onAppear is being called in the view in onAppear. I tried different Dependencies and clients, including setting the dependency at initialisation of the view etc.
I tried removing onAppear, but at any point I call a dependency, it crashes.
Can anyone help?
The Composable Architecture version information
1.17.1
Destination operating system
iOS 18
Xcode version information
16.2
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions