I\'m working on a basic iOS app which supports both portrait and landscape modes. When the iPhone simulator keyboard is open in landscape and I\'m switching the app
For me doing this worked on iPhone 8+ simulator iOS 11.2:
1. Go to Menu -> Hardware -> Erase all contents and settings.
2. Delete derived data from xcode. Xcode -> Preferences -> Locations -> Click on right arrow on left side of "Advanced" button.