iPhone 模拟器间歇性变慢

发布于 2024-10-01 01:26:11 字数 341 浏览 0 评论 0原文

几乎每次我使用 iPhone 模拟器时,我都会遇到间歇性的速度变慢的情况。一切都运行顺利,然后整个 UI 随机下降到 1-5 fps。视图推送、动画以及与 UI 相关的所有内容都会变得迟缓 2-10 秒。然后突然又恢复正常。

我已经用谷歌搜索了这个问题好几次了,但找不到解决方案。我的猜测是,有一些第三方扩展/插件导致了速度减慢,但我不确定如何调试它。

最近 4 个 SDK 安装都是这种情况。在所有模拟器(iPhone、iPhone 4 和 iPad)上都会发生。发生在我自己的应用程序以及 Apple 的库存应用程序(照片、Safari、设置)甚至主屏幕中。

这个问题使得调试/测试变得非常烦人。猜猜可能是什么问题?

Almost every time I use the iPhone Simulator, I get intermittent slowdowns. Everything is running smooth and then the whole UI randomly drops down to 1-5fps. View pushes, animations and everything related to the UI just becomes sluggish for 2-10 seconds. Then all of sudden it comes back to normal again.

I've googled this issue several times and just can't find a solution. My guess is that there's some 3rd party extension/plugin that's causing this slowdown, but I'm not sure how to debug this.

This has been the case for the last 4 SDK installations. Happens on all simulators (iPhone, iPhone 4 and iPad). Happens in my own apps as well as in Apple's stock apps (Photos, Safari, Settings) and even in the Home Screen.

This issue makes debugging/testing extremely annoying. Any guess what could be the issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

百思不得你姐 2024-10-08 01:26:11

最终删除了 ~/Library/Application Support/iPhone Simulator 文件夹中的所有内容。它有一些 3.0 时代以来非常旧的文件夹。也许有些不兼容,我不确定。

从那以后就再没有出现过这个问题。

编辑:不,这只是一个临时修复。仍在寻找永久解决方案。

Ended up deleting everything in the ~/Library/Application Support/iPhone Simulator folder. It had some really old folders back from the 3.0 days. Maybe some incompatibility, I'm not sure.

Haven't had the issue since.

EDIT: Nope, this is only a temporary fix. Still looking for a permanent solution.

葬﹪忆之殇 2024-10-08 01:26:11

我知道已经有一段时间了,但 Xcode 4.2 似乎已经解决了这个问题。

I know it's been a while, but it seems like Xcode 4.2 fixed this for good.

我为君王 2024-10-08 01:26:11

我注意到 Mac 版 FaceTime 运行时模拟器会出现一些速度减慢的情况,但情况并不像您描述的那么糟糕。当 Mac 上没有其他程序运行时,您是否尝试过?

I noticed some slowdowns in the simulator when FaceTime for Mac is running, but it's not as bad as you describe. Have you tried when nothing else is running on your Mac?

孤檠 2024-10-08 01:26:11

总体远景:您是否在使用 Core Location? (GPS 的东西)?

当我在模拟 iPhone 应用程序中打开位置跟踪时,我看到了与您所说的相同的行为。

Total long shot: Are you using Core Location at all? (GPS Stuff)?

I have seen the same kind of behavior your are talking about when I turn location tracking on inside my simulated iPhone app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文