So, as someone not at all familiar with how iOS pa...
# kotlin-native
a
So, as someone not at all familiar with how iOS packaging works, can someone point me to any article that packages a K/N library for distribution using CocoaPods instead of as a Framework? It is my (maybe flawed) understanding that these two are mutually exclusive. Is a Framework always included statically?
k
they are not exclusive
s
Frameworks are almost always dynamic libraries rather than static. Cocoapods are usually distributed as source but can be binary only. If you plan on distributing your library as binary only be aware that an app can only contain one K/N framework. Most people distribute binaries using the klib format which allows for combining multiple klibs into an umbrella framework to be used by an app.
a
👍 Yes I had read about this shortcoming. Still it seems the best way forward is CocoaPod binary distribution.