You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside commonMain I have multiple expect class ... that are defined only in iosMain and macOSMain and not in nativeMain, such as UserAgent strings, platform name, etc. After gradle sync, those expect classes are solved properly without any errors but when running createSwiftPackage gradle task, I receive that there are no expect declarations in nativeMain module: Expected class 'Platform' has no actual declaration in module <mySharedModule> for Native
Shouldn't just execute compileKotlinIos and compileKotlinMacOS and skip compileKotlinNative?
Is there a workaround to do this?
The text was updated successfully, but these errors were encountered:
Not sure if this is expected, do have a project with a middle nativeMain source set for specific iosMain & macOSMain source set
build.gradle.kts
Inside
commonMain
I have multipleexpect class ...
that are defined only iniosMain
andmacOSMain
and not innativeMain
, such as UserAgent strings, platform name, etc. After gradle sync, thoseexpect classes
are solved properly without any errors but when runningcreateSwiftPackage
gradle task, I receive that there are no expect declarations in nativeMain module:Expected class 'Platform' has no actual declaration in module <mySharedModule> for Native
Shouldn't just execute
compileKotlinIos
andcompileKotlinMacOS
and skipcompileKotlinNative
?Is there a workaround to do this?
The text was updated successfully, but these errors were encountered: