Hey, I am using `kotlin native cocoapods`. I have...
# ios
f
Hey, I am using
kotlin native cocoapods
. I have few questions. 1. Why kotlin native cocoapods plugin automatically creates podspec file upon sync. 2. If i use some cocoapods dependency and like Alamofire. I can define in gradle inside cocoapods block. Upon gradle sync podInstall task is ran by gradle. Then kotlin files of those pods are generated from cocoapods package. This later compiled with the final fat-framework. We can use this framework in any ios app. If so why we need to create a pod file in iosApp and run pod install there as well?
f
A Cocoapods or Swift Package for KMP needs to be compiled twice. • in KMP/iOS side for creating the native/binding and include binary symbol during the sync step • in Xcode side for including binary symbol and framework bundle resources during the build of the app.
It’s just about how binary format works for iOS, and it has some issues like a duplicate symbol warning message.
f
Kinda wired
But good insight