Anybody here already use moko <mvvm> and <mobile-m...
# multiplatform
r
Anybody here already use moko mvvm and mobile-multiplatform-gradle-plugin ? I try to learn kmm using this library but still fail to build ios project. I’m also try to follow their cocoapods setup but still unable to build the ios package. Really appreciate If anybody want to make a pull request on my public repository.
g
From a quick look at your gradle file, your kmm gradle file is missing a version. Also, I would change the podsProject to
podfile
. You can find more info about Cocoapods Integration here. In order to see the pods into your xcode project you need to open workspace in your ios folder + everytime there is change you will need to close XCode and open workspace again
r
your kmm gradle file is missing a version
are you sure ? Did you ever try or using this plugin ? Because defining multiplatform plugin is done using a `GradlePlugin`class provided by the library, Also PodFile already exist on ios folder, while opening ios project i’m using workspace instead of ios.xcodeproj
g
From the link, I've sent
// CocoaPods requires the podspec to have a version.
Haven't used the plugin before so don't know.
🙂 1
a
hi! we use this 🙂 i see your project and create pull request - https://github.com/rhonyabdullah/OWeatherKMM/pull/1 i you have any questions - feel free to ask 🙂 i will answer
r
Hi Alex009, Thank you so much for your PR 👏, will go there and find something to learn
I checking out your PR @alex009 but it remains to another problem that kotlin folder sources not automatically marked as sources root, for the details you can read on my comment in your PR.
a
we can continue in PR 🙂
r
Good to hear, see you there 👍
Another issue, now pod install is complete but after build the ios project it remains error which says shared framework not found. But strange i can still import MultiPlatformLibrary and call Greeting() class. again sir, need your help / clue @alex009
a
i pull mvvm branch, do pod install and add in xcode same lines. all ok compiled. in configuration nothing about some shared framework. i think you have local changes with errors
r
Hmm, i didn’t make any local changes, what xcode version did you use ? Currently i’m using xcode Version 12.1 (12A7403) on mac os BigSur
Did i make any mistakes ? Or any advise about what should i do on my Xcode because i’m new on Xcode (ios) ? I’m not seeing any shared.framework attached on ‘Frameworks, Libraries and Embedded Content’ section
[SOLVED] using “DevCleaner for Xcode” from app store i try to remove “Derived Data” of kmm ios project. Now build successfully.
👍 1