Skip to content

Segmentation fault: 11 While Archiving. #11

Open
@erdem-inan

Description

@erdem-inan

Hello !

First Thanks you for this librairy :)

I have an issue while archiving. I got a Segmentation fault: 11 and the message that comes with this :

While silgen closureexpr SIL function "@$s9TARGET_NAME22DocumentModuleAssemblyV4bodyQrvg7SwiftDI10DIRegisterV2asyQrqd__mlFQOyAA0cD0C_AA0cD4Type_pQo_yXEfU_".
 for expression at [PATH_TO_PROJECT/Document/DocumentModuleAssembly.swift:15:17 - line:17:9] RangeText="{
            DIRegister({ DocumentModule() }).as(DocumentModuleType.self)"

It seems that this concerns the library. Do you have any idea ?
Here is the full code of the DocumentModuleAssembly:

struct DocumentModuleAssembly: DIPart {
    var body: some DIPart {
        DIGroup {
            DIRegister({ DocumentModule() }).as(DocumentModuleType.self)
        }
    }
}

And AppDelegate:

let container = DIContainer(part:
            DIGroup {
                DocumentModuleAssembly()
            }
        )
        SwiftDI.useContainer(container)

Note that I have multiple ModuleAssembly, I did not put them in here. I try to remove the code one by one, but the issue appears on all the ModuleAssembly.

Also I am on Xcode 11.4

Thanks you for the help :)

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions