Hello! I'm trying to find out on the official docu...
# multiplatform
f
Hello! I'm trying to find out on the official documentation some help to build the interop of some cocoapods libraries imported on KTnative code and im getting some troubles when generating the headers for the iOS code. In this case I'm trying to generate the headers for Firebase Auth and Firebase Core Pods. But the headers generated on ObjC are missing all the inside headers of the library. Example:
FirebaseCore.h
is correctly generated but I need the reference of
FirebaseCore/FIRLogger.h
aswell to allow my swift code to call my sharedModule methods. Im getting this trace when the task
app:cinteropLibraryNameIos
is called
Copy code
Exception in thread "main" java.lang.Error: /Users/minuscorp/Documents/kotlin-native-poc/iosApp/Pods/FirebaseCore/Firebase/Core/Public/FIRConfiguration.h:19:9: fatal error: 'FirebaseCore/FIRLoggerLevel.h' file not found
a
f
@Artyom Degtyarev [JB] Im using that method:
Cocoapods { pod.... } }
thing is that the generation of the pod is not importing all the headers from
FirebaseCore
and some symbols are missing. Quite the same problem found on this Stackoverflow question: https://stackoverflow.com/questions/54047711/kotlin-native-interop-linker-could-not-find-framework
But on my case is using the cocoapods method instead of the cinterops
I have uploaded the code to https://github.com/minuscorp/kotlin-native-firebase The error can be reproduced just executing the IOS app
👀 1
Let me know if u figure out something @Artyom Degtyarev [JB]! If not I will just go and use the old version of manage it with a manual cinterop configuration. But would be nice to be able to doing it with the new cocoapods integration(it makes everything a lot easier)
👌 1
a
This is kinda strange, but I managed to build successfully from the Xcode. Everything I changed was 1) totally cut all android-related things from the script, just for simplification, and 2) added all frameworks except FirebaseInstanceID.framework to the iosApp target. What version of the Xcode do you use? I cannot reproduce the error for now.
f
Umm, im using Xcode 11
could u maybe post the changes here? or just do a PR to the repo
and I will continue from there.
@Artyom Degtyarev [JB] Will add all the frameworks to the target and check that. Anyway, if u can make a PR It will make everything easier. Thank you so much for give it a look