'How to make Xcode Simulator show up in the same window as Xcode?

I am using Xcode 7.1, and when I run the simulator, it opens in a different window. This makes it hard to see changes in Xcode while viewing the simulator. Is there a way to make the simulator appear on the same window as Xcode?



Solution 1:[1]

I guess you run Xcode in full screen mode. If you run Xcode in non full screen mode both applications (Xcode and iOS simulator) will bee on the same page.

Solution 2:[2]

Required Xcode 9.3 and above https://www.youtube.com/watch?v=YFPUgQpUmuE

copy and paste the command below to the terminal

defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES

then hit enter to execute and reopen the iPhone simulator.

Solution 3:[3]

I found another approach to this as I wasn't running Xcode in fullscreen mode yet the simulator was still opening on another desktop on my mac (per the solution above). I solved this by:

  1. Starting the simulator (it opens on another desktop)
  2. Going back to the screen I want the simulator to open in (the same as my Xcode in my case)
  3. Right-click the simulator icon
  4. Select Options/Assign To/This Desktop

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alex_slayer
Solution 2 pushkin
Solution 3 Matt