https://kotlinlang.org logo
#moko
Title
# moko
a

Andy Gibel

11/14/2019, 8:41 PM
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

alex009

11/15/2019, 2:55 AM
you have not sources in mpp-library. Gradle show it in console:
linkMultiPlatformLibraryDebugFrameworkIosX64 NO-SOURCE
a

Andy Gibel

11/15/2019, 3:01 AM
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

Andy Gibel

11/15/2019, 3:05 AM
ughhh really!? I could swear I previously had it building with only androidMain and the domain module defining source
a

alex009

11/15/2019, 3:11 AM
it can work for android, but not for ios 🙂
a

Andy Gibel

11/15/2019, 3:17 AM
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

alex009

11/15/2019, 3:20 AM
check this places
to see message what i send you can just execute gradle task for sync framework:
./gradlew :mpp-library:syncMultiPlatformLibraryDebugFrameworkIosX64
a

Andy Gibel

11/15/2019, 3:22 AM
hm, yes the cocoaPod sources are showing in the build/ folder...
a

alex009

11/15/2019, 3:23 AM
framework is exist in cocoapod directory?
a

Andy Gibel

11/15/2019, 3:23 AM
yes
a

alex009

11/15/2019, 3:23 AM
so framework was compiled. where you can't see framework?
a

Andy Gibel

11/15/2019, 3:25 AM
message has been deleted
...
sorry - caps 🙂
Multi*P*latformLibrary
a

alex009

11/15/2019, 3:26 AM
🙂
a

Andy Gibel

11/15/2019, 3:26 AM
but still it wasn't generating before without the source. Thanks again!
👌 1
3 Views