https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

curioustechizen

04/30/2020, 2:55 PM
Just to add to my previous points, this is my structure. I see some examples where debugging works (either in AppCode or XCode) with everything in a single repo, but not with this kind of split structure
Copy code
- my-app-android/
    - app/
    - multiplatform/
        - build.gradle(includes multiplatform plugin and cocoapods plugin)
        - commonMain/, androidMain/, iosMain/
        - multiplatform.podspec
- my-app-ios/
    - Podfile (points to ../my-app-android/multiplatform/multiplatform.podspec)
    - .xcworkspace
    - source code/
k

kpgalligan

04/30/2020, 3:26 PM
Single repo does not matter. If you’re using the Kotlin cocoapods plugin, that builds a static framework, which won’t work for compiling. We have a forked version of the Kotlin cocoapods plugin, which allows you to specify a dynamic framework, to reenable debugging. This is all evolving now (we have active PRs), but that’s the summary: https://github.com/touchlab/KaMPKit/blob/master/shared/build.gradle.kts#L97
So, summary, in your care, if you make your KMP framework a dynamic framework, debugging should work.
c

curioustechizen

04/30/2020, 3:28 PM
ah okay
Alright - thanks again!
3 Views