Replies: 1 comment 4 replies
-
Thanks for starting a discussion around this! I wonder if it's possible to attach a reduced project that reproduces the issue? Maybe we'll be able to figure out that the problem is and workaround it that way. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are trying to use TCA with a new feature on an existing app. It seems that in our release/prod scheme I am having linking errors when Xcode tries to compile code that uses Case Paths, like the Scope class from TCA. I have added both The Composable Architecture and CasePaths as dependencies using SPM. We are using this code in an Embedded Framework and get the warning that "Linking against a dylib which is not safe for use in application extensions" (Wondering if this is the case for only proper Extensions or if an embedded framework counts as general application extension). But the main issue is the error I am seeing. Everything works fine locally with our dev environment but not when trying to run locally with our release scheme.
The error I am seeing is "Undefined symbols for architecture arm64:". See image below for all of it. Are there any architecture limitations to this framework? Or any specific build settings I need to adjust?
When I comment out out Scope declaration, it will build (but it breaks our implementation). So I have pinpointed it to this specific class:
Scope(state: \.radioButtonFeature, action: /Action.radioButtonFeature) { RadioButtonFeature() }
It seems that we clear that error if we change "Build Active Architecture Only" to "Yes" but we have other unrelated errors come up when we do that so I'm hoping there is another way around this.
Beta Was this translation helpful? Give feedback.
All reactions