-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing required module 'UIKitNavigationShim' #3352
Comments
@TobiasRe Thanks for the report! It has us a little confused though, as integrating with TCA in a package seems to work just fine.
This stood out to me. Is there a reason you're not linking to TCA? Couldn't that cause problems? One thing that you may have to do if you're linking to TCA from a dynamic framework is manually specify the includes paths so that the At the end of the day we'd love to support TCA/Swift Navigation usage from a dynamic framework, but we may need help from someone that is more familiar with those build systems to address the problem. Would you be able to help here? As an alternative, are you able to use SPM or a static library instead of a dynamic framework? Those build systems seem to work OK in our experience. |
@stephencelis Thanks for your considerations. From what I've tried both static libraries and dynamic frameworks are affected from the same behavior. My first guess was adding a missing @_exported statement: |
@stephencelis PS.: Thank you for your amazing ongoing work around TCA! |
Description
When integrating TCA 1.14.0 in a framework project, I'm facing issues regarding the
UIKitNavigationShim
target.Building the framework fails after upgrading from TCA 1.12.1 to 1.13.0 or above, having the compiler outputting.
missing required module 'UIKitNavigationShim'
This is a new behavior since the introduction of
swift-navigation
inside of TCA.This error occurs for framework targets that don't link TCA as a binary.
I've added a demo project to demonstrate the issue.
Build
FrameworkWithoutTCA
to replicate the issue.TCA 1.140.zip
Checklist
main
branch of this package.Expected behavior
The framework target builds successfully.
Actual behavior
The project fails to compile with the error:
missing required module 'UIKitNavigationShim'
Steps to reproduce
The Composable Architecture version information
0.14.0
Destination operating system
iOS 18
Xcode version information
Xcode 16.0.0 Beta 6
Swift Compiler version information
The text was updated successfully, but these errors were encountered: