iPhone Simulator suddenly started running very slow

点点圈 提交于 2019-11-27 16:51:47
Metabble

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.

Tyler Hack

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.

Go to the simulator's Debug menu and select "Toggle Slow Animations".

Update: In Xcode 10, it's just "Slow Animations":

Select Simulator,

Select Debug and uncheck slow animation.
shortcut command + t

That's work for me.

If the Cmd-T (slow animations) option doesn't work for you and Debug -> Slow Animations is off but you still have slow animations try Simulator -> Reset Contents and Settings (or possibly Hardware -> Erase All Content and Settings). That worked for me when none of the other answers in here did. Anyone have a suggestion as to why?

Also having a debugger attached (at all) may make the animations very slow.

Another potential fix for React-Native users:

Chrome de-prioritizes Javascript running in any tabs not in the foreground. So if you have enabled remote debugging, be sure to put the debugger in its own window.

You accidentally pressed the slow animation on debug when using simulator. So Run Simulator -> Debug -> Uncheck Slow Animation.

I think you pressed command + T instead of command + R by mistake.

I don't have the rep yet to leave a comment, but I upvoted some answers here and wanted to say more. I had a problem with slow animations in the iOS Simulator, especially on rotation, and I found this post via Google. Indeed, somehow "Toggle Slow Animations" must have been on, because three shifts fixed it. At first, I didn't think this was a problem because there's no checkmark next to "Toggle Slow Animations." It turns out there's never a checkmark, or any indication from the menu whether it's on or off. So just try toggling it and see if the rotation/navigation is faster/slower.

So, thank you!

smmaca

Simulator -> Reset contents and settings works for me. The issue seems to reappear when I debug my react-native code remotely. It could also be to do with AsyncStorage as nomad suggested.

You can try to turn off remote debugging (Cmd-D -> Stop Remote JS Debugging). That usually speed things up.

When the chrome debug is active and the browser tab is not in the foreground, the emulator is slow too. For me, I decided to put the guide in the foreground.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!