Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

TyphoonStoryboard inject #21

@yalamandarao

Description

@yalamandarao

Unable to inject storyboard

I'm getting error " definition!.injectProperty("homeStoryboard", with: self.homeStoryboard())"
Error : objc[49398]: Class _NSZombie_FBSXPCMessage is implemented in both ?? (0x600000490b40) and ?? (0x600000490c60). One of the two will be used. Which one is undefined.

@objc func appDelegate() -> AnyObject {
        return TyphoonDefinition.withClass(AppDelegate.self, configuration: {
            definition in
            definition!.injectProperty("homeStoryboard", with: self.homeStoryboard())
            definition!.injectProperty("loginStoryboard", with: self.loginStoryboard())
        }) as AnyObject
    }

    
    @objc func homeStoryboard() -> AnyObject {
        return TyphoonDefinition.withClass(TyphoonStoryboard.self, configuration: {
            definition in
            definition!.useInitializer(#selector(TyphoonStoryboard.init(name:factory:bundle:)), parameters: { initializer in
                initializer!.injectParameter(with: "Home")
                initializer!.injectParameter(with: self)
                initializer!.injectParameter(with: Bundle.main)
            })
        }) as AnyObject

    }
    
    
    @objc func loginStoryboard() -> AnyObject {
        return TyphoonDefinition.withClass(TyphoonStoryboard.self, configuration: {
            definition in
            definition!.useInitializer(#selector(TyphoonStoryboard.init(name:factory:bundle:)), parameters: { initializer in
                initializer!.injectParameter(with: "Login")
                initializer!.injectParameter(with: self)
                initializer!.injectParameter(with: Bundle.main)
            })
        }) as AnyObject
        
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions