Radoslaw Juszczyk
01/26/2021, 10:42 AMval commonMain by getting {
dependencies {
implementation("com.russhwolf:multiplatform-settings:0.6.1")
}
}
Inside iosMain I have added this code:
fun test(d: NSUserDefaults) {
AppleSettings(d)
}
And everything compiles correctly but IDE complains about AppleSettings that (Cannot access class ‘platform.Foundation.NSUserDefaults’. Check your module classpath for missing or conflicting dependencies) [see image below]
any ideas what could be the reason of this error?russhwolf
01/26/2021, 2:52 PMiosX64()
and iosArm64()
rather than ios()
in your gradle configuration.Radoslaw Juszczyk
01/26/2021, 3:16 PM