title: App Crashing with UIImagePickerController in Landscape mode on iPhone X (iOS 12) only
body: <p>Created Project in Xcode 10.1 with Device Orientation Landscape Left and Right Only.</p>
  
  <p>Added the following Key in Plist </p>
  
  <p><strong>Privacy - Camera Usage Description:</strong> “Used for taking Picture”</p>
  
  <pre><code>   import UIKit
  
  class UploadViewController: UIViewController,UIImagePickerControllerDelegate,UINavigationControllerDelegate
  
  {
      //MARK:- ViewDidLoad
      override func viewDidLoad() {
          super.viewDidLoad()
  
  
      }
  
   @IBAction func cameraButtonAction(_ sender: UIButton)
      {
  
          if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.camera){
  
              let imagePicker = UIImagePickerController()
              imagePicker.sourceType = .camera
              imagePicker.modalPresentationStyle = .overCurrentContext
              imagePicker.delegate =  self
              self.present(imagePicker, animated: true, completion: nil)
  
          }else{
  
              let alert  = UIAlertController(title: "Warning", message: "You don't have camera", preferredStyle: .alert)
              alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
              self.present(alert, animated: true, completion: nil)
  
          }
      }
  
  }
  </code></pre>
  
  <p>Above code working fine in following devices</p>
  
  <p><strong>iPhone 8 (iOS 12)</strong></p>
  
  <p><strong>iPhone 7 (iOS 11.4.1)</strong></p>
  
  <p><strong>iPad mini (iOS 11)</strong></p>
  
  <p>But When I run this in iPhoneX with iOS 12.1, then Getting following error.</p>
  
  <pre><code>Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [CAMViewfinderViewController shouldAutorotate] is returning YES'
  *** First throw call stack:
  
  libc++abi.dylib: terminating with uncaught exception of type NSException
  </code></pre>
  
  <p>I did the research on this issue but I'm not able to find the solution yet.
  Here are few links that I found for the related issue but none of the answers working for iPhoneX.</p>
  
  <p><a href="https://stackoverflow.com/questions/19374237/using-uiimagepickercontroller-in-landscape-orientation/19374338#19374338">Using UIImagePickerController in landscape orientation</a></p>
  
  <p><a href="https://stackoverflow.com/questions/14738491/uiimagepickercontroller-interfaceorientation-crash?rq=1">UIImagePickerController InterfaceOrientation Crash</a></p>
  
  <p><a href="https://www.reddit.com/r/iOSProgramming/comments/3xpwot/discussion_lets_talk_about_landscape_cameras/" rel="nofollow noreferrer">https://www.reddit.com/r/iOSProgramming/comments/3xpwot/discussion_lets_talk_about_landscape_cameras/</a></p>