Replies: 3 comments 6 replies
-
Hi @maddapper, can you please provide a project path demonstrates the behavior? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mbrandonw it might be a build setting that is causing this behavior, so I'm trying to see what differences there are in my build settings. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, I highly doubt it is an issue with this library. It's a pretty simple SPM package. I am going to convert this to a discussion and please feel free to continue the conversation over there. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When I have a main project that depends on SwiftUI Navigation and an internal framework that also depends on SwiftUI Navigation, the build fails with this error:
Undefined symbol: CasePaths.AnyCasePath.init(embed: (B) -> A, extract: (A) -> B?) -> CasePaths.AnyCasePath<A, B> Undefined symbol: nominal type descriptor for CasePaths.AnyCasePath Undefined symbol: protocol descriptor for CasePaths.CasePathable
Interestingly, when I try the same configuration with just CasePaths, my project was able to build successfully. I'm assuming SPM builds these dependencies as dynamic frameworks since they are transitively referenced. I know it's not a versioning issue, since I use exact versions. I think this is a bug in SwiftUI Navigation. Thank you!
Checklist
main
branch of this package.Expected behavior
When including SwiftUI Navigation in both the main project and internal framework, I expect the build to be successful.
Actual behavior
Build fails with this error:
Undefined symbol: CasePaths.AnyCasePath.init(embed: (B) -> A, extract: (A) -> B?) -> CasePaths.AnyCasePath<A, B> Undefined symbol: nominal type descriptor for CasePaths.AnyCasePath Undefined symbol: protocol descriptor for CasePaths.CasePathable
Steps to reproduce
SwiftUI Navigation version information
1.2.1
Destination operating system
iOS 17
Xcode version information
Version 15.3 (15E204a)
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions