Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启用 BUILD_LIBRARY_FOR_DISTRIBUTION 后 class 序列化造成奔溃 #62

Open
shaop opened this issue Jul 14, 2021 · 0 comments
Open

Comments

@shaop
Copy link

shaop commented Jul 14, 2021

@CoderMJLee 在项目二进制化的过程中,发现如果启用 BUILD_LIBRARY_FOR_DISTRIBUTION 后,在跨模块使用类继承的模式下,会造成奔溃。希望能帮助解决一下。

Example

// Module A
open class BaseModel: Convertible {
    public var baseVarInt: Int?
    public var baseVarString: String?
    required public init() {}
}
// Module B
import MoudleA
public class ChildModel: BaseModel {
    public var childVarInt: Int?
    public var childVarString: String?
}
let model = jsonString.kj.model(ChildModel.self)

image

最小可复现项目可查看该 链接

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant