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 storyboard issue #123

Open
chris-choy opened this issue Jun 13, 2020 · 1 comment
Open

Build storyboard issue #123

chris-choy opened this issue Jun 13, 2020 · 1 comment

Comments

@chris-choy
Copy link

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)
    
}`
@ferranabello
Copy link
Owner

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

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

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

2 participants