"Undefined symbol" error on project using Package with TCA dependency #2127
Replies: 3 comments 2 replies
-
Hi @WedgeSparda, I'm not sure how to diagnose this without a project that reproduces the problem. Can you try creating a project from scratch that mimics your project's structure, and see if it still happens? |
Beta Was this translation helpful? Give feedback.
-
Hi @mbrandonw I managed to create this demo project https://github.com/WedgeSparda/TestSPMDependencyError But for that project everything is working as expected. Maybe there is some build setting on my main project causing this issue but not sure which one yet. Anyway, in this demo project you can see basically whay I'm trying to do in my main project. |
Beta Was this translation helpful? Give feedback.
-
This happened a few times for me as well, but it was just an Xcode / Swift bug in my case. Cleaning the build folder always fixes the problem |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm migrating our base code, formed by different local Frameworks into local Packages. Until now I was able to transform the bottom layer framework (with some Foundation extension and helpers, let's called
MyFoundation
) without problem.Now I'm working on the next layer called
MyCore
, a framework which hasMyFoundation
as a local dependency, and also some remote dependencies, likeComposableArchitecture
.I managed to create the
MyCore
package and it compiles without problem. This is thePackage.swift
, as you can see I'm usingprerelease/1.0
As I said
MyCore
compiles without problem, but problem comes when I compile any of the frameworks using theMyCore
package as dependency. I'm getting this errors:All the lines on the
referenced from
are from types using the@Dependency
annotation, obviously.I'm not sure why is this happening. I tried linking
ComposableArchitecture
to the frameworks usingMyCore
but didn't work.What I'm missing?
Thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions