启动屏幕要花太长的时间才能消失。

时间:2022-10-19 21:31:26

I just started learning Swift. It's been only a month, and I can assure you that I'm not doing anything fancy. Yet, the launch screen on the simulator is taking a long time to disappear before the app starts. It stays on for at least 5 seconds, and it takes another 2.5 seconds to slowly fade away. And as it fades out, the first view of the app slowly fades in. It was working fine (took only a fraction of a second) until a couple of days ago when this started happening suddenly while I was working on a sample app. Here are things I've confirmed:

我刚开始学斯威夫特。这只是一个月,我可以向你保证,我没有做任何幻想。然而,在应用程序启动之前,模拟器上的启动屏幕需要很长时间才能消失。它停留至少5秒,然后再用2.5秒慢慢地慢慢消失。当它淡出时,应用的第一个视图慢慢淡出。它运行得很好(只花了几分之一秒),直到几天前,当我正在开发一个示例应用程序时,它突然开始发生。

  • During the initial 5 seconds, the app won't accept any user interaction. But during the 2.5 seconds of fading, it responds to touches.
  • 在最初的5秒内,应用程序不会接受任何用户交互。但在2.5秒的退色过程中,它会对触摸做出反应。
  • This is a systematic problem because ALL sample code shows the same problem.
  • 这是一个系统问题,因为所有示例代码都显示了相同的问题。
  • Even a new project, without any modifications, shows the same problem. I tried both "Game" and "Single View Application". After the name of the project is displayed as a launch screen, it takes about 8 seconds for the "Hello World" to appear completely. (When "Game" is selected.)
  • 即使是一个新项目,没有任何修改,也会显示出同样的问题。我尝试了“Game”和“Single View Application”。当项目的名称显示为启动屏幕后,“Hello World”需要大约8秒才能完全显示出来。(当选择“游戏”)。
  • Restarting Xcode and rebooting the Mac do not help.
  • 重新启动Xcode和重新启动Mac都没有帮助。
  • Updating to Xcode (6.4) does not help. My Xcode was 6.3.x (I believe it was 6.3.2 before the update).
  • 更新到Xcode(6.4)没有帮助。我的Xcode 6.3。x(我认为更新前是6.3.2)
  • Reinstalling a new copy does not help. I deleted the newly updated 6.4, and re-installed a new copy of 6.4.
  • 重新安装一个新的副本没有帮助。我删除了新更新的6.4,重新安装了新的6.4。
  • The only similar incident I could find was this link, which did not provide the answer.
  • 我能找到的唯一类似的事件是这个链接,它没有提供答案。

I was working on a simple practice program. It ran successfully just like it did numerous times before. Then, I made some minor changes to the code (nothing fancy --- just some trivial changes.) And the next time I pressed the RUN button, I noticed that the launch screen took a considerably longer to disappear. After that, it just won't go back to the way it was.

我在做一个简单的练习。它成功地运行了,就像它以前做过无数次一样。然后,我对代码做了一些微小的更改(没有什么特别的—只是一些微不足道的更改)。当我再次按下RUN按钮时,我注意到发射屏幕消失的时间要长得多。在那之后,它就不会回到原来的样子了。

Could someone please advise the cause of the problem and the solution? Thank you very much.

谁能告诉我问题的原因和解决办法吗?非常感谢。

1 个解决方案

#1


4  

You may have Slow Animations turned on. Go to the simulation and check under Debug:

你可能会打开慢速动画。进入仿真,调试检查:

启动屏幕要花太长的时间才能消失。

#1


4  

You may have Slow Animations turned on. Go to the simulation and check under Debug:

你可能会打开慢速动画。进入仿真,调试检查:

启动屏幕要花太长的时间才能消失。