-
Notifications
You must be signed in to change notification settings - Fork 146
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
Always getting gradle build error for iOS cocapods #428
Comments
Also, it would be helpful to provide us with information about how to create more libraries for this SDK even though I can do that But official documentation would be helpful for everyone not just me |
I'm also getting the same error on iOS after updating android and multiplatform the stable version version 1.9.20 Showing Recent Messages output: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors ld: Undefined symbols: _FIRFirestoreErrorDomain, referenced from:
OBJC_CLASS$_FIRDocumentChange, referenced from:
OBJC_CLASS$_FIRDocumentSnapshot, referenced from:
OBJC_CLASS$_FIRFieldPath, referenced from:
OBJC_CLASS$_FIRFieldValue, referenced from:
OBJC_CLASS$_FIRFirestore, referenced from:
OBJC_CLASS$_FIRFirestoreSettings, referenced from:
OBJC_CLASS$_FIRQuerySnapshot, referenced from:
OBJC_CLASS$_FIRTimestamp, referenced from:
/Users/elias.mazzocco/Documents/KMM-Firebase-Messaging/iosApp/Pods/ld:1:1: ignoring duplicate libraries: '-ldl', '-lobjc' This is my build.gradle file: plugins { @OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
} android { multiplatformResources { kswift { |
Ok, I found a workaround for this problem, you can use isStatic = true on cocoapods this will fix firestore. But the problem is when you cant use isStatic = true like in my case when I use it it breaks MOKO libraries. So I had to do an workaround, I added pod("FirebaseFirestore"){ So it would have the oficial FirebaseFirestore library together with gitlive one, its not ideal but it was the only way I could find to solve this issue: Here is the build.gradle file that I'm using: plugins { @OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
} android { multiplatformResources { kswift { |
@EliasMazz I've set all the iOS things to static (seems to be a Firebase SDK iOS thing) and exported MOKO like so:
Then I opened Xcode and copy pasted the Build Phase Script available in the MOKO docs. Seems to be working well with Kotlin 1.9.20 and Compose 1.5.10. |
Hi, I'm trying to create new library in this sdk but first I need to get it in a state where the gradle build doesn't fail
For more info:
I'm not sure how to get this error but I'm pretty sure I started clean and didn't make any changes at all
but if there is more information required I'm ready to provide it
running
pod --version
get this output
I'm using the latest version of Xcode 15
The text was updated successfully, but these errors were encountered: