Getting the following error while trying to cinter...
# kotlin-native
j
Getting the following error while trying to cinterop FirebaseAnalytics:
Copy code
Task :common-client:linkDebugFrameworkIOS
Undefined symbols for architecture x86_64:
  "_sqlite3_bind_blob", referenced from:
      ___47-[APMSqliteStore bindValues:toStatement:error:]_block_invoke in GoogleAppMeasurement(APMSqliteStore_ae86ae290f270c42720d24e61ec7eef9.o)
....
My
.def
file
linkerOpts
👇
linkerOpts = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/lib/darwin/libclang_rt.osx.a -framework FirebaseFirestore -framework BoringSSL -framework gRPC-C++ -framework gRPC-Core -framework gRPC-ProtoRPC -framework gRPC-RxLibrary -framework gRPC -framework leveldb-library -framework Protobuf -framework FIRAnalyticsConnector -framework Firebase -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework GoogleAppMeasurement -framework GoogleUtilities -framework nanopb -framework Protobuf -framework StoreKit
It seems I’m missing the sqlite3 library, how can I add it?
t
-lsqlite3
y
for my multiplatform multi module project, extraOpts does not work. but below seems to compile fine.
Copy code
kotlin {
  iosX64("ios") {
    binaries {
      linkerOpts("-lsqlite3")
    }
  }
}
j
That’s it, worked like charm @thevery. Thanks 👍