Hi there! I am wondering if anyone knows about the...
# multiplatform
l
Hi there! I am wondering if anyone knows about the following error,
Copy code
Undefined symbols for architecture arm64:
  "_kfun:app.alactive.kobby.dto.AccessPolicyDto.Companion#serializer(){}kotlinx.serialization.KSerializer<app.alactive.kobby.dto.AccessPolicyDto>", referenced from:
      _objc2kotlin_kfun:app.alactive.kobby.dto.AccessPolicyDto.Companion#serializer(){}kotlinx.serialization.KSerializer<app.alactive.kobby.dto.AccessPolicyDto> in ComposeApp.framework.o
When building for
iosApp
, which is repeated for every class marked with
@Serializable
? The same error does not occur with compiling for
androidApp
. Using Kotlin (and therefore serialization plugin)
"2.0.20-Beta2"
and serialization library
"1.7.1"
.
Found a solution for now, even though I'm not sure what causes it. According to another (slack)[https://slack-chats.kotlinlang.org/t/22714931/hi-guys-i-have-got-some-issues-on-ios-side-during-linking-ph] post, simply downgrade Kotlin (and therefore the plugin) to
2.0.0
.