TCA does not work with Framework #1774
-
Hi, thank you for your great library. I use TCA a lot and have found that it works well for projects that consist of only the main app target or are multi-modularized by SPM. However, I have run into a problem this time. I am unable to build TCA on a project that is multi-modularized by Framework. The error log is as follows. expand error logs
I have also looked at issues and discussions. And I found some similar ones. Also, removing a dependency on the "Dependencies" library will result in an error stating "undefined symbol: OrderedCollections". Is the only way to solve this problem to switch to multi-modularity with SPM? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I don't believe this is an issue with TCA, but rather a long standing problem/bug with Xcode. It's the whole reason why we can't have a separate "test support" library for Luckily your situation is fixable. You just need to have your app target stop depending on TCA and Dependencies directly. You already get that transitively by depending on SimpleFramework: |
Beta Was this translation helpful? Give feedback.
I don't believe this is an issue with TCA, but rather a long standing problem/bug with Xcode. It's the whole reason why we can't have a separate "test support" library for
TestStore
, which in turn is the reason we needed to build and maintain XCTestDynamicOverlay.Luckily your situation is fixable. You just need to have your app target stop depending on TCA and Dependencies directly. You already get that transitively by depending on SimpleFramework: