问题
With the iOS simulator version 10, double clicking the home button to bring up multitasking (running apps) sometimes does not respond. Even hitting (cmd + shift + h)x2 to simulate home button double click also works sometimes. I have verified this with a work mate and they have the same issue. I am not sure if this is a bug in the simulator or if there is a setting somewhere on for example the delay between the clicks? The answer from here did not make a difference.
回答1:
I have this problem too when I want to close my app. So, I use command line instead:
xcrun simctl list | grep Booted
then copy simulator ID, and run this command to close app
xcrun simctl terminate <simulator ID> <your app bundle ID>
... or if you have only one simulator running, just type booted
:
xcrun simctl terminate booted <your app bundle ID>
回答2:
Enable this setting in the simulator hardware settings.
Hardware > Keyboard > Send Keyboard Shortcuts to Device
Command + Shift + H + H will no longer do anything BUT double tapping the home button on the simulator will start working as expected.
回答3:
I have found one trick to open executed app stack cmd + shift + Hx2 at first try.
Here are the steps:
First open notification center from top to bottom swipe.
Now press cmd + shift + Hx2.
You can see opened app stack at first try.
I tested in iOS 13 simulator.
来源:https://stackoverflow.com/questions/47256764/ios-simulator-double-click-home-button-does-not-work-sometimes