kotest: Error compiling iOS tests with 5.0.0.M2 and compiler plugin
Which version of Kotest are you using 5.0.0.M2
I’m trying out the 5.0.0.M2 preview version with the gradle and compiler plugin, it works for JS and JVM but I’ve having trouble getting it working for iOS. Trying to run the iosX64Test task results in the following error during the linking step:
The /Applications/Xcode-12.5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
Undefined symbols for architecture x86_64:
"_kfun:io.kotest.core.spec.DisplayName#<get-name>(){}kotlin.String", referenced from:
_kfun:io.kotest.engine.test.names.DefaultDisplayNameFormatter#format(kotlin.reflect.KClass<*>){}kotlin.String in result.o
ld: symbol(s) not found for architecture x86_64
Am I missing a depedency specific to iOS? I have the kotest-framework-engine dependency in my commonTest source set.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 32 (30 by maintainers)
Commits related to this issue
- Introduced wrappers to work around kotlin native bug #2565 — committed to kotest/kotest by sksamuel 3 years ago
Ok its fixed locally. Try 795 once it completes building and you should be good for native. I can run native tests with 1.6, those annotation errors have gone away (I use linux btw). Let me know 😃
There’s still an issue with JS that has started with 1.6. Some runtime issue with coroutines. If you’re not using JS then it won’t affect you, but I hold off releasing 5.0.0 final until I lock down what it is.
So the annotations stay as they are, but we only access via those extension vals. I can give it a go.