I have followed the KMM hands-on tutorial on how to build a sample app with KMM and I was able to complete all the steps successfully! (Yu-huu!) Now I am trying to do a small POC in the production application. So I created a new KMM shared module and added it to the Android project. For the Android part it works fine, but I can't figure out how to include the shared module into the iOS app.
According to this link, the iOS project directory should be referenced in the gradle.properties
file:
xcodeproj=~/iOSProjects/TestKMM
but when I try to import the shared module, then xcode complains that there's no such module:
So I suppose that simply referencing the iOS project in the gradle.properties
is not enough. There must be something else that I am missing.
Also, I checked the build
directory of the shared module, and as far I can tell, there's no iOS artifact generated. (This is different from the hands-on tutorial project, where a bin/iosX64/debugFragmework/shared.framework/ ....
exists.)