https://kotlinlang.org logo
s

Sylvain Patenaude

10/28/2021, 4:00 PM
So I added a test under
/src/iosTest
because it involves native stuff like workers. I also have some multiplatform code spread like this: • In
src/commonMain
, code with some
expected
declarations. • In
src/jvmMain
, code with some
actual
declarations. • In
src/iosMain
, code with some
actual
declarations. Now when I run this on a simulator (vmImage
masOS-10.14
on DevOps), I get the following error when the process tries to run task `compileKotlinIosSim`:
Copy code
Expected function 'myFunction' has no actual declaration in module <MyModule> for Native
Now technically I have 2 targets,
iosX64("iosSim")
and
iosArm64("ios")
, so I think this is causing my issue, but I don't know how to fix it. Thanks in advance for the help!
m

mbonnin

10/28/2021, 4:01 PM
s

Sylvain Patenaude

10/28/2021, 4:36 PM
Thanks @mbonnin, seems to have worked with some reshuffling of my
build.gradle
based on the link you sent!