title: XCODE 11 - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppDelegate window]:
body: <p>Recently i updated to the XCODE 11 and came to know the concepts of SceneDelegate and AppDelegate . This is my simple code for in AppDelegate :</p>
  
  <pre><code>    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
      // Override point for customization after application launch.
      self.window.backgroundColor = [UIColor yellowColor];
      return YES;
  }
  </code></pre>
  
  <p>But unfortunately its getting crashed on the following line as shown in the Image:</p>
  
  <p><a href="https://i.stack.imgur.com/OIGM9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OIGM9.png" alt="enter image description here"></a></p>
  
  <p>And it shows the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/L53M5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L53M5.png" alt="enter image description here"></a></p>
  
  <p>Please help me in resolving the issue which i am facing. Any help will be appreciated.</p>