问题
I run multiple simulator and I need to close one of them. How can i do this? Because I tried to close it like we does in older version of Xcode but can't close.
回答1:
Select Simulator.. Go into File Menu -> Close window or press [Command + W ]. It will close the simulator which is on top .
Go into Windows menu -> uncheck Show Device Bezels. Then you can close using red cross icon on simulator.
回答2:
There are two ways to close particular Simulator form Multiple simulators
Long-press power button on the right-top of simulator , then slide to turn off power, a single simulator will be close.
Go into File Menu -> Close window or press [Command + W ]. It will close the simulator which is on top
回答3:
1) Simple way to close single simulator
-> Select required Simulator
-> Click Command + W (⌘W).
2) If you want to minimise simulator
-> Select required simulator
-> Click Command + M (⌘M).
3) For screen shot of simulator
--> Select required simulator
-->Select Commend + S (⌘S).
4) If you want to rotate simulator(for landscape mode)
-> Select required simulator
-> Click Command + left arrow or right arrow.
See below screen for left arrow or right arrow
回答4:
To long-press power button on the right-top of simulator , then slide to turn off power, a single simulator will be close.
回答5:
I found a way, but it was by a program I used called HyperDock. It gives a preview of the app windows that are opened when you hover over the icon in the dock. It will give you an option to close the simulator window when you see the preview.
来源:https://stackoverflow.com/questions/45165635/how-to-quit-or-close-single-simulator-from-opened-multiple-simulator-in-xcode-9