Revert Xcode Simulator to the default setting

What I had done:

I enabled full screen mode on the simulator so I executed the following command:

defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES



Question:

How can I remove this rectangular bar shown in the image (so that it is like the default setting when xcode is installed)?



I have tried the following without any success:

  • Executed the above command with a NO
  • Deleted
    /Users/<Username>/Library/Preferences/com.apple.iphonesimulator.plist
  • Created a new Mac User
  • Deleted Xcode and installed it again
Answered by Developer Tools Engineer in 613784022
Yes, as of Xcode 11.4 there is now a titlebar above the simulator windows. There is currently not an option to turn it off.
My bad, newer simulators now have a rectangular bar on top of them, this had nothing to do with execution of the command with the terminal. The bar existed even before I executed the command.
Accepted Answer
Yes, as of Xcode 11.4 there is now a titlebar above the simulator windows. There is currently not an option to turn it off.
It's better to use the defaults command to modify preferences since cfprefsd may not notice changes to the backing plist if it has a hot cache of it already, eg:
Code Block
defaults delete com.apple.iphonesimulator
Revert Xcode Simulator to the default setting
 
 
Q