Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Simulator suddenly started running very slow

I have been working on an app in iphone simulator for a number of weeks and it has been running well up until now, but all of a sudden has begun running very slow both when loading content and animations. I have not made any changes to my code since I last tested it successfully.

I tried restarting the simulator (multiple times) and removing the app and doing a completely clean rebuild, but no luck. I also checked my cpu usage through the monitor while the simulator is running and I am only using about 30% of my cpu and 40% of memory.

I fully understand that the simulator is never a quick as the device itself, but it seems strange that it has suddenly started running slow after such a long time, and by slow I mean less than a quarter of its original speed.

like image 986
Finglish Avatar asked Mar 11 '13 21:03

Finglish


People also ask

How can I make iOS simulator run faster?

Close unused applications to free system resources such as cpu & memory. make sure "slow animations" is not selected in the simulator debug menu. Short cut for this is ⌘T simulator -> Debug -> slow animations.

How do you refresh iPhone simulator?

ctrl+cmd+z. Pause . 5 seconds for menu to appear. Click the reload button image.

How do I debug iPhone simulator?

You'll need to go to Settings > Advanced and check the Show Debug Menu option. Then you'll see the option to open the web inspector for the Simulator right from that menu. With the Web Inspector open, you can debug inside the Simulator just like you could right in a desktop browser with DevTools.


2 Answers

In the iOS simulator, at the bar on the top, click on DebugToggle Slow Animations (or Slow Animations with Xcode 10+). Chances are you accidentally toggled it on.

like image 150
Metabble Avatar answered Sep 21 '22 06:09

Metabble


Simple Command + T will fix this problem.

Command + T toggles the simulator's Slow Animations, which can be found under the Simulator Menu: Debug -> Slow Animations.

like image 27
Tyler Hack Avatar answered Sep 23 '22 06:09

Tyler Hack