<https://github.com/Albert-Gao/kotlin-native-mobil...
# kotlin-native
a
https://github.com/Albert-Gao/kotlin-native-mobile-multiplatform-example Setup a project of sharing code between iOS and Android with the tests, it’s a little bit different than the others because the
Shared
code has
common
,
ios
and
android
, which I use multiplatform approach for ios and android only. All parts works perfectly now. Thanks for all the help!
👍 2
v
For the Android Studio issue, you could try declaring the
shared-common
module as a compileOnly dependency as a workaround. The compileOnly part makes sure it won’t include the code twice in the app, but that should make it available for autocomplete etc.
👍 1
r
woah man. your content looks very comprehensive! thanks for sharing! I might message you if I have trouble setting up 😃
thanks for sharing 🙂
a
@rakeeb Glad it helps 🙂
t
@albertgao I saw you’re using
enableDebug true
in the framework closure. Does this enable debugging for you? When I enable that for my sample I get
Undefined symbols for architecture arm64
with a whole bunch of errors 🤔
a
@Tobi No, it doesn’t enable the debug if you mean debug in xcode along with the application logic. I just unit test the lib rather than integration test. Don’t know how to debug the generated framework. I copied this line from @Simone Civetta’s repo to wish it could work: https://github.com/viteinfinite/KotlinSlideParser/blob/master/common/slideparser/build.gradle Maybe he knows something that could help us?🤔 And he has a great ppt here: https://speakerdeck.com/viteinfinite/native
👍 1
t
looks like he is using lldb cli for debugging. but since I get this weird errors I can’t try it anyway 🤔
s
Hi @Tobi, building for debugging is broken in the released 0.6 but it was fixed shortly after. Try building K/N from source and use that version instead 🤘
👍 2
a
@Simone Civetta Thanks for the info! Do you mean debug inside XCode, walking from swift to kotlin ? 😍
s
yes, that’s actually working - with stepping and call stack. Object inspection does not work though
🎉 1