-
-
Notifications
You must be signed in to change notification settings - Fork 181
Cant run tests after adding your library as dependency #126
Unanswered
matanmarciano
asked this question in
Q&A
-
Hello,
After adding this to my gradle:
sourceSets {
val commonMain by getting {
dependencies {
...
...
//Firebase
implementation("dev.gitlive:firebase-common:$gitLiveFirebaseVersion")
implementation("dev.gitlive:firebase-database:$gitLiveFirebaseVersion")
...
}
}
...
}
I cant run my unit tests..
when I run core->Tasks->verification->allTests task I got this error:
Testing started at 21:49 ...
Executing tasks: [allTests] in project /Users//projects//core
> Configure project :core
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
The Kotlin source set androidAndroidTestRelease was configured but not added to any Kotlin compilation. You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets
> Task :core:generateDefNTPKit UP-TO-DATE
> Task :core:podDownload UP-TO-DATE
> Task :core:generateDummyFramework UP-TO-DATE
> Task :core:podspec UP-TO-DATE
> Task :core:podGenIOS UP-TO-DATE
> Task :core:podSetupBuildNTPKitIphonesimulator UP-TO-DATE
> Task :core:podBuildNTPKitIphonesimulator UP-TO-DATE
> Task :core:cinteropNTPKitIos UP-TO-DATE
> Task :core:compileKotlinIos UP-TO-DATE
> Task :core:iosProcessResources NO-SOURCE
> Task :core:iosMainKlibrary UP-TO-DATE
> Task :core:compileTestKotlinIos UP-TO-DATE
> Task :core:linkDebugTestIos
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: framework not found FirebaseDatabase**
> Task :core:linkDebugTestIos FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':core:linkDebugTestIos'.
> 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
BUILD FAILED in 39s
10 actionable tasks: 1 executed, 9 up-to-date
21:50:20: Task execution finished 'allTests'.
can you see that FirebaseDatabase is not found.
How can I overcome it?
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
Replies: 3 comments
-
Same issue here with FirebaseFirestore.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
-
same here.
Does anyone know how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
-
this problem should be fixed when we move over to cocoapods plugin.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment