at some point I changed something with the project...
# moko
a
at some point I changed something with the project and it stopped building the library Framework for iOS
I've tried several times going from the template slowly back toward what I had but now I have a minimally renamed project that still won't build the MultiPlatformLibrary framework and am super confused
I wonder if someone might take a quick glance at a github project and maybe I removed something obvious?
I've simply removed libraries and files until I had a minimal set that works fine on Android but won't build the iOS Framework
a
you have not sources in mpp-library. Gradle show it in console:
linkMultiPlatformLibraryDebugFrameworkIosX64 NO-SOURCE
a
hm I did not see that in console. I guess I don't really understand what you mean by no sources
(I apologize and these are probably very basic questions :))
the folder structures of K/N projects are hard to grasp. This is part of why I like the moko multiplatform module in the first place
K/N is binary framework and without sources (any source files in commonMain/iosMain) it can't be compiled. so if sources not exists - compilation skiped
a
ughhh really!? I could swear I previously had it building with only androidMain and the domain module defining source
a
it can work for android, but not for ios 🙂
a
Hm adding commonMain as you did still does not seem to solve the problem
I've added the file and did a pod update/install. Still the foundation is not found on the iOS side
maybe you cant point out where you saw this previous gradle message so I can try and debug from those. Barring that feedback, I've got nothing to go on other than the iOS Framework not building
a
check this places
to see message what i send you can just execute gradle task for sync framework:
./gradlew :mpp-library:syncMultiPlatformLibraryDebugFrameworkIosX64
a
hm, yes the cocoaPod sources are showing in the build/ folder...
a
framework is exist in cocoapod directory?
a
yes
a
so framework was compiled. where you can't see framework?
a
message has been deleted
...
sorry - caps 🙂
Multi*P*latformLibrary
a
🙂
a
but still it wasn't generating before without the source. Thanks again!
👌 1