https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
l

Larten

01/30/2020, 7:28 AM
Hello, I split firebase dependencies into submodules in kmp project. auth, database, remoteconfig, storage are working fine, but the analytics module has something wrong. I’m using Carthage in cinterop, I checked the analytics dependency’s framework.
Copy code
language = Objective-C
modules = FirebaseAnalytics
compilerOpts = -framework FIRAnalyticsConnector -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstallations -framework FirebaseInstanceID -framework GoogleAppMeasurement -framework GoogleDataTransport -framework GoogleDataTransportCCTSupport -framework GoogleUtilities -framework nanopb
linkerOpts = -framework FIRAnalyticsConnector -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstallations -framework FirebaseInstanceID -framework GoogleAppMeasurement -framework GoogleDataTransport -framework GoogleDataTransportCCTSupport -framework GoogleUtilities -framework nanopb
Copy code
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_SKPaymentQueue", referenced from:
      objc-class-ref in GoogleAppMeasurement(APMAnalytics_8b8a060bbe8023e2a8dc40576f3452ac.o)
  "_OBJC_CLASS_$_SKProductsRequest", referenced from:
      objc-class-ref in GoogleAppMeasurement(APMProductsRequest_769d88c7ff80f19356bd57d9fa02e637.o)
....
....
I have no idea, what’s wrong. I did everything similiar as the the other modules (which are testes and working), but I can’t build this module. Actually the Studio can solve dependencies, I could use FIRAnalytics for iOS and FirebaseAnalytics for Android, but build run into error. Any idea? Can somebody add Analytics dependency to kmp project? Oh and I set firebase modules binary to 6.15.0, because 6.16.0 has something problem in every module 🙂
a

Artyom Degtyarev [JB]

01/30/2020, 3:06 PM
Hello! The only thing I found for now is connection between this error and
StoreKit.framework
. Maybe it would make sence to add it to the
.def
file?
l

Larten

01/30/2020, 3:57 PM
Thank you! It doesn’t help 😞
h

Himanshu Sharma

01/30/2020, 5:56 PM
I have similar issue with
RemoteConfigSettings
coudn’t find any solution for it 😞
l

Larten

01/30/2020, 6:48 PM
RemoteConfig is working for us
🤔 1
Copy code
-framework FIRAnalyticsConnector -framework FirebaseABTesting -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstallations -framework FirebaseInstanceID -framework FirebaseRemoteConfig -framework GoogleAppMeasurement -framework GoogleDataTransport -framework GoogleDataTransportCCTSupport -framework GoogleUtilities -framework nanopb -framework Protobuf
modules = FirebaseRemoteConfig
h

Himanshu Sharma

01/30/2020, 6:52 PM
that’s Odd. as a workaround we removed
RemoteConfigSettings
code from iOSMain actual implementation and move it to Swift as it was very minor thing.