Interesting commit! Kotlin only iOS and watchOS sa...
# kotlin-native
l
Interesting commit! Kotlin only iOS and watchOS samples, with storyboard-less UIs: https://github.com/JetBrains/kotlin-native/commit/0b8066602e1310762398f03ad209fa336d7fb5c6
👍 4
m
This is nice, but has anybody idea why is handwritten task
packForXCode
is used instead of
cocoapods
?
s
Likely because cocoapods is a distribution platform and there is no need to publish the framework for external consumption outside of the project.
m
yes, that makes sense and it is fine for a sample app. I have tried both ways(directly and cocoapods) and I’m still not realy able, without the instructions (e.g. like here https://play.kotlinlang.org/hands-on/Targeting%20iOS%20and%20Android%20with%20Kotlin%20Multiplatform/06_SettingUpKotlinFramework), to add framework with additional custom build steps into xcode, ok I am also not an iOS developer. With cocoapods its much more convenient. Also usually a bigger app has cocopods for other dependencies.
j
Depends, some teams might just want an artifact and not want the ios app build tied into the lib build
m
Thanks for your feedback.