I'm trying to run simple demo CounterTest in my KM...
# compose
m
I'm trying to run simple demo CounterTest in my KMP Compose project which contains Firebase integration. When I run the
fun testCountingUp() = runComposeUiTest
test (on iosSimulatorArm64), I get error:
Copy code
...
> Task :composeApp:xcodeVersion UP-TO-DATE
> Task :composeApp:linkDebugTestIosSimulatorArm64
e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: warning: ignoring duplicate libraries: '-ldl'
ld: framework 'FirebaseMessaging' not found
> Task :composeApp:linkDebugTestIosSimulatorArm64 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':composeApp:linkDebugTestIosSimulatorArm64'.
> Compilation finished with errors
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to <https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings> in the Gradle documentation.
BUILD FAILED in 40s
Did anyone encounter this or has any idea how to solve? I added
kotlin.native.cacheKind.iosSimulatorArm64=none
to gradle.properties but it didn't help. Project is open-source and available here: https://github.com/mcicak/laboratory/tree/main/WebShop