question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error compiling iOS tests with 5.0.0.M2 and compiler plugin

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:32 (30 by maintainers)

github_iconTop GitHub Comments

1reaction
sksamuelcommented, Nov 22, 2021

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.

1reaction
sksamuelcommented, Nov 22, 2021

So the annotations stay as they are, but we only access via those extension vals. I can give it a go.

Read more comments on GitHub >

github_iconTop Results From Across the Web

" npx cap add ios" fails with error "Updating iOS native ...
I ran the following command in the terminal. sudo xcode-select --reset. and got rid of the error for me.
Read more >
Multiplatform plugin does not work with Kotlin 1.6.0-M1 #2538
I don't know how to test snapshot version of Gradle plugin. :( All reactions.
Read more >
Cannot be Read or is Not a Valid ZIP file – How to fix Maven ...
Corrupt imported file by Maven caused below error: ... or is not a valid ZIP file CrunchifySpringMVCTutorial Build Path Problem Build path.
Read more >
How to Set Up a Local AEM 6.5 Environment with React
Step-by-step tutorial for integrating a React SPA into AEM 6.5, including the initial setup of the local instance of Adobe Experience ...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:104477 - "bulldozer - nautilus build extension (new ebuild)" ... fails to compile" status:RESOLVED resolution:OBSOLETE severity:major · Bug:174779 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found