Hello, I was trying to create a kotlin multiplatfo...
# multiplatform
a
Hello, I was trying to create a kotlin multiplatform library that could be used from any ios, macos, android, jvm, and js target. When I tried to implement the kotlin native part for iOS I was struggling to get the cocoapods to resolve in the
iosMain
folder. However I could get them to resolve if I created a folder for each ios architecture ie iosArm64 or 32. Was curious is the expectation to implement the actual implementations for each architecture or was there something I was missing after following this guide to get cocoapods to resolve for ios? https://kotlinlang.org/docs/native-cocoapods.html#add-a-dependency-on-a-pod-library-from-the-cocoapods-repository
a
Hello! You’re facing the following problem: https://youtrack.jetbrains.com/issue/KT-41631. In two words,
iosMain
source set is a common one, while the
cinterop
tool creates bindings per-platform. As soon as the commonizer will be able to create common bindings based on the platform-specific one, this should work as expected.
🙏 1
b
@Artyom Degtyarev [JB] Is it correct that the workaround recommended for this at the moment is to write the code in one of the architecture specific folders and create a symlink for the other one like in the sample git repo?