title: reason: '-[FaveoHelpdeskPro_Swift.AppDelegate window]: unrecognized selector sent to instance 0x282efc980'
body: <p>I am getting following error when I am trying to run the project, my project is crashing.</p>
  
  <p>It is giving following error,</p>
  
  <blockquote>
    <p>FaveoHelpdeskPro_Swift[1400:370341]
    -[FaveoHelpdeskPro_Swift.AppDelegate window]: unrecognized selector sent to instance 0x282efc980</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
    '-[FaveoHelpdeskPro_Swift.AppDelegate window]: unrecognized selector
    sent to instance 0x282efc980'</p>
  </blockquote>
  
  <p>and it coming to following screen,</p>
  
  <p><a href="https://i.stack.imgur.com/cF71j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cF71j.png" alt="enter image description here"></a></p>
  
  <p>and my <code>SceneDelegate.swift</code> contains already window object,</p>
  
  <pre><code>class SceneDelegate: UIResponder, UIWindowSceneDelegate {
  
  var window: UIWindow?
  
  func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
      // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
      // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
      // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
      guard let _ = (scene as? UIWindowScene) else { return }
  }
  </code></pre>
  
  <p>what is the issue, why it is crashing ?</p>
  
  <p><a href="https://drive.google.com/file/d/1cQo-ZUsvxXLdbSPbz49S9E_meBvDwNFA/view?usp=sharing" rel="nofollow noreferrer">Here is the complete project</a></p>