ferranabello/Viperit

Build storyboard issue

Opened this issue · 1 comments

Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Users/chris/Nutstore Files/XCode/VIPER/ViperItExample/Pods/Viperit/Viperit/Core/Module.swift, line 28
2020-06-13 12:05:39.324354+0800 ViperItExample[2698:112714] Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Users/chris/Nutstore Files/XCode/VIPER/ViperItExample/Pods/Viperit/Viperit/Core/Module.swift, line 28

func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { // Use this method to optionally configure and attach the UIWindow windowto the provided UIWindowScenescene. // If using a storyboard, the windowproperty will automatically be initialized and attached to the scene. // This delegate does not imply the connecting scene or session are new (seeapplication:configurationForConnectingSceneSession` instead).

// guard let _ = (scene as? UIWindowScene) else { return }

    guard let scene = (scene as? UIWindowScene) else { return }

    window = UIWindow(frame: UIScreen.main.bounds)
    window?.windowScene = scene

    let module = AppModules.ceshi.build()
    let router = module.router as! CeShiRouter
    module.router.show(inWindow: window, embedInNavController: true, setupData: nil, makeKeyAndVisible: true)
    
}`

Hi @chris-choy ,
can you attach your AppModules enum?

According to the error, it's probably just a naming issue. Thanks