Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shut down iPhone in simulator

This might seem like a strange question, but can I actually shut down the iPhone and restart it in the iPhone simulator? I want to do this to see if my settings are saved and reloaded when the app is relaunched AFTER shutdown.

Thanks

like image 580
Aravind Avatar asked Mar 24 '11 01:03

Aravind


People also ask

How do I logout of Apple ID on simulator?

To logout from iOS simulator using xCode 6.3. 1, go to Setting -> Safari -> Clear History and Website Data. I didn't see this "Edit/Delete Apple ID" option under Settings/Safari.

Is there an iPhone simulator?

The Apple iOS Simulator, which ships as part of Xcode, is a tool for developing and prototyping your mobile app. While the iOS Simulator can be used to test your app's basic behaviour, it is severely limited as a testing platform.

How do you shake iPhone simulator?

In the Hardware menu, choose Shake Gesture. That's it.

How do you enable simulation on iPhone?

To launch a Simulator without running an appChoose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.


4 Answers

Yes. Press Command+Q to quit the simulator.

This will close all the apps running in the simulator.

Pressing the home button only returns to the home screen without quitting the apps(ios 4 or later) because of multitasking.

You can also double tap the home button, click and hold on the icons at the bottom of the screen till a red circle appear, and click on the red circle to close the running app.

like image 87
Xiao Avatar answered Oct 02 '22 13:10

Xiao


As of XCode 9, the best way to close a single simulator is using the Cmd + W shortcut, or going to File -> Close Window.

like image 24
JaviCasa Avatar answered Sep 29 '22 13:09

JaviCasa


If your'e xcode 9.You can now shutdown the simulator by long-pressing the power button.

enter image description here

enter image description here

like image 35
priwiljay Avatar answered Oct 03 '22 13:10

priwiljay


To close/shutdown one simulated device without closing other simulations, select the device you want to shut down then go to "File" and choose "Close Window".

like image 34
Ahmed Nasser Avatar answered Oct 02 '22 13:10

Ahmed Nasser