icerockdev / moko-kswift

Swift-friendly api generator for Kotlin/Native frameworks
https://moko.icerock.dev
Apache License 2.0
348 stars 21 forks source link

Is it necessary to name a multiplatform lib exactly 'MultiPlatform Library' #76

Closed romanandreyvich closed 1 year ago

romanandreyvich commented 1 year ago

My KMM lib has a name different of 'MultiPlatformLibrary'

After I compile iOS project I got the error: No such module 'MultiPlatformLibrary' 1

Is there any option to use moko-kswift with custom KMM lib name?

Alex009 commented 1 year ago

kswift works with any framework name.

in your screenshot i see not KSwift generated code, but mokoMvvmFlowSwiftUI module. check readme in moko-mvvm https://github.com/icerockdev/moko-mvvm#swiftui-additions short: to use precompiled mokoMvvmFlowSwiftUI your module should have name MultiPlatformLibrary but you can copy-paste swift sources of this module to your project https://github.com/icerockdev/moko-mvvm/issues/179#issuecomment-1119254946

romanandreyvich commented 1 year ago

Oh, I got it :) Thanks for your help