# multiplatform


03/22/2023, 11:05 AM
Hi there 👋, I have a Kotlin multiplatform mono repo with ios, android and shared project. I try to write unit tests for ios target but need to use there classes from shared module. Therefore I tried
import shared
at the top of my test class. But I get error
Undefined symbol: _OBJC_CLASS_$_SharedErrorType
. Can someone please tell me how to link the shared module to my unit test target in the ios app?
Okay I find that out now on my own. I need to set correct settings for unit test target on "Framework Search Paths" (like it is for app target):
To ensure I have always the freshest framework in the corresponding folder, I also added
Run Gradle
script to unit test target, before "Compile sources":
Not sure if the Run script is needed for unit test target. However, FYI for the next one running in this issue. Maybe it helps someone else as well