getting undefined symbols when running tests #2941
Replies: 3 comments
-
Hi @macinsmith, you shouldn't need to do this step:
Your app target depends on TCA, and your test target depends on the app target. That should be enough. Most likely there is just something misconfigured in your project. Is there a reason you created a unit test target from scratch? Typically the Xcode template creates a test target for you automatically. I would try creating a fresh Xcode project from scratch and see if it works. And by the way, the "CoreAudioTypes" part is just a warning, it is not the root cause of the problem. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestions. I rebooted my machine, created a new project with testing enabled, and just @testable to the app target and it finally worked. It is working now on my M1 Mac, running Sonoma and Xcode 15.2, ComposableArchitecture 1.9.2, iOS 17.2 in simulator |
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestions.
I rebooted my machine, created a new project with testing enabled, and just @testable to the app target and it finally worked.
It is working now on my M1 Mac, running Sonoma and Xcode 15.2, ComposableArchitecture 1.9.2, iOS 17.2 in simulator
On Mar 22, 2024, at 5:31 PM, Brandon Williams ***@***.***> wrote:
Hi @macinsmith <https://github.com/macinsmith>, you shouldn't need to do this step:
Added Composable Architecture to the test target
Your app target depends on TCA, and your test target depends on the app target. That should be enough.
Most likely there is just something misconfigured in your project. Is there a reason you created a unit test target from scratch? Typically the Xcode template creates a test target for you automatically. I would try creating a fresh Xcode project from scratch and see if it works.
And by the way, the "CoreAudioTypes" part is just a warning, it is not the root cause of the problem.
—
Reply to this email directly, view it on GitHub <#2941 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA3QNCSGRZ4OGUSBLLT66B3YZTENFAVCNFSM6AAAAABFEENQXSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQOBTGY4TI>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
I'm using the Composable Architecture Tutorial. (I'm using 1.9.2 of Composable Architecture, Xcode 15.2, iOS target 17.2)
Link CounterFeature (arm64)
Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
Undefined symbols:
Linker command failed with exit code 1 (use -v to see invocation)
Without adding the test target cmd/U would not work, nor were there diamonds by the testCounter func
Beta Was this translation helpful? Give feedback.
All reactions