Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle build fails due to missing iOS actual declarations #438

Open
MattSkala opened this issue Nov 22, 2023 · 0 comments
Open

Gradle build fails due to missing iOS actual declarations #438

MattSkala opened this issue Nov 22, 2023 · 0 comments

Comments

@MattSkala
Copy link
Contributor

When trying to run ./gradlew assemble (which is also the first step of the CI workflow) locally, the build fails with the following errors:

> Task :firebase-app:compileKotlinIosArm64 FAILED
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/commonMain/kotlin/dev/gitlive/firebase/firebase.kt:32:49 Expected function 'apps' has no actual declaration in module <dev.gitlive:firebase-app> for Native
The following declaration is incompatible because return type is different:
    public actual fun Firebase.apps(context: Any?): [Error type: Return type for function cannot be resolved]

e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/commonMain/kotlin/dev/gitlive/firebase/firebase.kt:38:31 Expected function 'initialize' has no actual declaration in module <dev.gitlive:firebase-app> for Native
The following declarations are incompatible because number of value parameters is different:
    public actual fun Firebase.initialize(context: Any?): FirebaseApp?
    public actual fun Firebase.initialize(context: Any?, options: FirebaseOptions, name: String): FirebaseApp
The following declaration is incompatible because return type is different:
    public actual fun Firebase.initialize(context: Any?, options: FirebaseOptions): [Error type: Return type for function cannot be resolved]

e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:7:8 Unresolved reference: cocoapods
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:16:25 Unresolved reference: FIRApp
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:19:17 Unresolved reference: FIRApp
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:22:5 Unresolved reference: FIRApp
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:25:5 Unresolved reference: FIRApp
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:27:31 Actual function 'initialize' has no corresponding expected declaration
The following declarations are incompatible because number of value parameters is different:
    public expect fun Firebase.initialize(context: Any? = ...): FirebaseApp?
    public expect fun Firebase.initialize(context: Any? = ..., options: FirebaseOptions, name: String): FirebaseApp
The following declaration is incompatible because return type is different:
    public expect fun Firebase.initialize(context: Any? = ..., options: FirebaseOptions): FirebaseApp

e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:28:5 Unresolved reference: FIRApp
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:30:56 Unresolved reference: FIRApp
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:34:51 Unresolved reference: bundleID
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:34:61 Unresolved reference: APIKey
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:34:71 Unresolved reference: databaseURL
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:34:86 Unresolved reference: trackingID
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:34:98 Unresolved reference: storageBucket
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:34:113 Unresolved reference: projectID
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:39:21 Actual function 'apps' has no corresponding expected declaration
The following declaration is incompatible because return type is different:
    public expect fun Firebase.apps(context: Any? = ...): List<FirebaseApp>

e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:39:43 Unresolved reference: FIRApp
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:42:24 Unresolved reference: it
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:42:30 Unresolved reference: FIRApp
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:44:39 Unresolved reference: FIROptions
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:45:9 Unresolved reference: APIKey
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:46:9 Unresolved reference: databaseURL
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:47:9 Unresolved reference: trackingID
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:48:9 Val cannot be reassigned
e: file:///Users/matt/Development/Projects/fitify/firebase-kotlin-sdk/firebase-app/src/iosMain/kotlin/dev/gitlive/firebase/firebase.kt:49:9 Unresolved reference: projectID

FAILURE: Build failed with an exception.

Am I missing some configuration here, or is the build currently broken in master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant