# Problems with Tuist and TCA that don't show previews

**URL:** https://community.tuist.dev/t/problems-with-tuist-and-tca-that-dont-show-previews/620
**Category:** Troubleshooting & how to
**Tags:** projects
**Created:** [June 13, 2025, 8:10am UTC](https://community.tuist.dev/t/problems-with-tuist-and-tca-that-dont-show-previews/620 "2025-06-13T08:10:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Little-tale](https://community.tuist.dev/user_avatar/community.tuist.dev/little-tale/32/568_2.png) [@Little-tale](https://community.tuist.dev/u/Little-tale)
#### Post date: [June 13, 2025, 8:10am UTC](https://community.tuist.dev/t/problems-with-tuist-and-tca-that-dont-show-previews/620/1 "2025-06-13T08:10:06Z")

</div>

Everyone, do you happen to  
After multi-modularization  
Will TCA work normally in previews?

After multi-modularization (Xconigs separation)  
There is an issue where the preview does not come out.

The Tuist version is currently using 4.51.1.  
에러문구는 Failed to launch previews.com.apple.PreviewAgent.iOS  
does not work with the error  
The build is operating normally with a simulator or a practical machine.

I need your help.

---

<div class="post-metadata">

### Author: ![pepicrft](https://community.tuist.dev/user_avatar/community.tuist.dev/pepicrft/32/5_2.png) [@pepicrft](https://community.tuist.dev/u/pepicrft)
#### Post date: [June 13, 2025, 12:59pm UTC](https://community.tuist.dev/t/problems-with-tuist-and-tca-that-dont-show-previews/620/2 "2025-06-13T12:59:34Z")

</div>

Hi @Little-tale and welcome to the forum 👋

Unfortunately, the unreliability of SwiftUI previews is somewhat challenging to debug because their implementation is closed source. However, what we learned from users is that they generally work better when dynamic frameworks are used, so I’d recommend playing with that.

Do you by any chance have access to more in-detail stacktraces from the previews feature?

---

<div class="post-metadata">

### Author: ![Little-tale](https://community.tuist.dev/user_avatar/community.tuist.dev/little-tale/32/568_2.png) [@Little-tale](https://community.tuist.dev/u/Little-tale)
#### Post date: [June 17, 2025, 8:30am UTC](https://community.tuist.dev/t/problems-with-tuist-and-tca-that-dont-show-previews/620/4 "2025-06-17T08:30:35Z")

</div>

@pepicrft Thx For your Reply

# First, in the following way The preview problem has been solved to some extent.

```auto
private let tcaDynamics: [String : Product] = [
"ComposableArchitecture": .framework,
"Dependencies": .framework,
"CombineSchedulers": .framework,
"Sharing": .framework,
"SwiftUINavigation": .framework,
"UIKitNavigation": .framework,
"UIKitNavigationShim": .framework,
"ConcurrencyExtras": .framework,
"Clocks": .framework,
"CustomDump": .framework,
"IdentifiedCollections": .framework,
"XCTestDynamicOverlay": .framework,
"IssueReporting": .framework,
"_CollectionsUtilities": .framework,
"PerceptionCore": .framework,
"Perception": .framework,
"OrderedCollections": .framework,
"CasePaths": .framework,
"DependenciesMacros": .framework,
"FlowStacks": .framework
]

```

## But there’s another problem

> After “Tuist clean”  
> “Generate” will cause build errors in the practical machine or simulation.

```auto
External macro implementation type 'CasePathsMacros.CasePathableMacro' could not be found for macro 'CasePathable()'; '/Users/jaehyungkim/Library/Developer/Xcode/DerivedData/Goolbitg-iOS-cykyhzsppetvnjevsxfztglgrnuv/Build/Products/Debug-iphoneos/CasePathsMacros' produced malformed response

```

> To solve this problem  
> In the “Derived Data” folder, click the “Debug-iphoneos” folder  
> If you delete it and rebuild it, it will solve the problem  
> Every time after “CleanBuild”, the process is too cumbersome. What should I do  
> It’s hard…

- But this is not good either…  
Because it won’t be able to be put in the archive…  
Macro should be exclusive to macOS, but I tried to do it on iOS  
There’s a problem

---

<div class="post-metadata">

### Author: ![Little-tale](https://community.tuist.dev/user_avatar/community.tuist.dev/little-tale/32/568_2.png) [@Little-tale](https://community.tuist.dev/u/Little-tale)
#### Post date: [June 24, 2025, 11:37am UTC](https://community.tuist.dev/t/problems-with-tuist-and-tca-that-dont-show-previews/620/5 "2025-06-24T11:37:20Z")

</div>

### We can resolve the above issue.

## First, Set dependencies for “TCA” and “TCACoordinator” From the “Package.Swift” file.

```swift
private let tcaDynamics: [String : Product] = [
    "ComposableArchitecture": .framework,
    "Dependencies": .framework,
    "CombineSchedulers": .framework,
    "Sharing": .framework,
    "SwiftUINavigation": .framework,
    "UIKitNavigation": .framework,
    "UIKitNavigationShim": .framework,
    "ConcurrencyExtras": .framework,
    "Clocks": .framework,
    "CustomDump": .framework,
    "IdentifiedCollections": .framework,
    "XCTestDynamicOverlay": .framework,
    "IssueReporting": .framework,
    "_CollectionsUtilities": .framework,
    "PerceptionCore": .framework,
    "Perception": .framework,
    "OrderedCollections": .framework,
    "CasePaths": .framework,
    "DependenciesMacros": .framework,
    "FlowStacks": .framework // TCACoordinator
]

```

> Most TCA, TCACoordinators’ preview problems are  
> It’s resolved through the above method.

> However, if there is a problem even if you set it like this  
> To solve this problem  
> Delete all “YOUR\_SCHEME”-iphoneos contents in “Derived Data” folder  
> Rebuilds will resolve the issue.
