Xcode 11.4 brought with it a totally new and powerful simulator with a separate toolbar, and this toolbar contains a few buttons and the first one is called Capture Cursor
. But, unfortunately, it has some issues on my Macbook (with touch bar).
When you click on this button you lose mac's cursor, and the iPad simulator gets all the focus (which is supposed). And to exit it, it says 'Press Esc to exit', but pressing Exit does nothing on my MacBook and I'm stuck in the simulator. Even more, my touch-bar seems to freeze at all, and all the buttons stop responding.
So the question basically is, is this a known issue and how to fix it (get control back) without restarting mac by the press-and-holding power button?
xcrun simctl io booted recordVideo <filename>. <file extension>. Press control + c to stop recording the video.
Update 2021: You must HOLD the RIGHT CTRL KEY while moving the mouse to escape the Virtual Machine.
Triple clicking the touch ID button to open the accessibility option dialog, and clicking on Keyboard Shortcuts
or Preferences...
at the bottom of the dialog will escape from the simulator.
I had some success by plugging in a USB Keyboard (which was a pain bc I had to rummage for an adapter dongle too), and could use the escape key on that keyboard (I had to hold it for 3 seconds).
It seems that my Late 2016 MacBook Pro touchbar freezes entirely while the simulator captures my cursor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With