如何在 Swift 中扩展 class 形式的 SharedCode 模块?

How to extend class form SharedCode module in Swift?

我在 SharedCode 模块 kotlin-multiplatform 中创建了 open class GitHubApiClient。当我在 Android 应用程序中扩展此 class 时它工作正常,但是当我想在 IOS 应用程序中扩展 class 时出现错误:

SharedCode 模块中 class 已打开:

在 Xcode class GitHubApiClient 中看起来像这样:

我该如何解决这个问题?我需要这个 class 也会在 Xcode 中打开。 我使用 kotlin_coroutines version 1.3.0 ktor version 1.2.4kotlin serialization version 0.12.0

尝试在 GithubApiClient 构造函数中将 private 更改为 open