2
votes

My app always runs in compatibility mode on the new iPad Pro Simulator. I've installed the latest Xcode 10.1. I've verified it is linked against the latest iOS 12.1. When I run it on an iPhone XS, it correctly uses Safe area insets. Yet it shows a black status bar and a black stripe at the bottom where the Home indicator is located.

Even when I create a sample app with Xcode 10.1 and run it on the iPad Pro Simulator, it is launched in compatibility mode:

Sampe app in compatibility mode on iPad Pro

How to make the app use the whole screen?

2
@matt - you tell me. It's a plain vanilla Single View app with the background color set to green.Vladimir Grigorov
Can you post a sample project? I still can't reproduce the issue on the 11-inch or the 12-inch 3rd gen simulator. Have you restarted the computer? Cleaned out derived data? Deleted all simulators and recreated them? Those are all things I always do whenever there's an Xcode upgrade.matt

2 Answers

2
votes

I was seeing the same issue simply by creating a fresh iOS app using the Single View app or the Master-Detail app templates.

I got it working as expected by doing the following:

I deleted all versions of Xcode installed on my computer. I went to my ~/Library/Developer/Xcode folder and I deleted the following:

  • All files named DeveloperPortal*
  • The DerivedData folder
  • The Installs folder (which just had some empty folders in it)
  • Under UserData/IB Support I deleted the Simulator Devices folder

Then I did a fresh download and install of Xcode 10.1 from the App Store.

After that, a clean build of the test app worked as expected. I don't know which of the above steps was really needed but I got it working.

2
votes

I tried the above answer and it did not fix my problem. I did fix my problem by setting a .storyboard file as my Launch Screen File in Project->Target->General. Previously, I had been using Launch Images for my splash screen.

This is mentioned in the "Optimizing Your UI" section here: https://developer.apple.com/ipad/