Xcode + Perforce:它经常无缘无故地向我展示旋转的轮子!我能做些什么?

发布于 2024-08-24 12:01:10 字数 980 浏览 6 评论 0原文

在处理 Xcode 项目时,我在切换文件、滚动、搜索、键入、调试、删除断点、从另一个应用程序切换回来或保存时不断遇到旋转轮。它也会在编译之前发生,但通常只是偶尔发生,没有明显的原因。

这是 Xcode 项目中第二次发生这种情况,这让我抓狂。必须等待旋转轮消失(2-5 秒),这完全打乱了我的工作流程。我到底能做些什么来...

  • 找出导致问题的原因?
  • 解决问题吗?

更新: 我已经升级到 Snow Leopard,安装了 Xcode 3.2,同时还将 Perforce 服务器升级到 2009.2。即使问题没有完全消失,也不会那么明显。


更多详情: 当任何项目都很小时,使用 Xcode 和 Perforce 一切都会超级顺利。经过大约 4 周的工作后,我的两个项目最终遇到了这个旋转轮问题。到目前为止,只有这两个项目发生过这种情况。它们由源代码管理中的大约 1000-1200 个文件组成,其中大部分是资产。即使我在 Perforce 中手动检查整个项目,也会出现问题。当我复制项目目录并在不再受源代码控制的副本中工作时,或者如果我在 Perforce 中创建一个分支并在该分支中工作(在源代码控制下)时,问题就消失了。

我与一位同事分享了其中一个项目,他在 Mac 上遇到了完全相同的问题。我们最终切换到 Subversion,旋转轮问题立即消失了。现在我已经收到了该项目的更新副本,并将其作为一个新项目放在 Perforce 下,问题也消失了(到目前为止它还没有重新出现)。这让我觉得可能是文件修改次数较多造成的。

服务器本身(版本 2009.1)位于我的 LAN 上的另一台(Windows)计算机上,因此绝对不涉及互联网延迟。完整的存储库大小只有 1 GB,分布在大约十几个项目中。

如果这个问题看起来更像是对 Perforce 的支持查询,我很抱歉。不过,我使用的是免费版本的 Perforce,因此我无权获得他们的支持。我希望没有人介意我在这里问。我真的对此很沮丧。我不想每次出现旋转轮问题时都必须为项目创建一个新分支。

While working on an Xcode project i keep getting the spinning wheel while switching files, scrolling, searching, typing, debugging, removing breakpoints, switching back from another app or saving. It also happens before compiling but usually it just happens from time to time for no apparent reason.

This is the second time this started happening in a Xcode project and it's driving me nuts. It completely breaks my flow of work to have to wait for the spinning wheel to go away (2-5 seconds). What on earth could i possibly do to ...

  • figure out what's causing the problem?
  • resolve the problem?

UPDATE:
I have upgraded to Snow Leopard, installed Xcode 3.2 and in the meantime also upgraded the Perforce server to 2009.2. The problem is much less noticeable if not completely gone away.


More details:
When any project is small, everything is super-smooth with Xcode and Perforce. Two of my projects eventually had this spinning wheel problem after about 4 weeks of work. It only happened with those two projects so far. They consist of around 1000-1200 files in source control, most of them assets. The problem occurs even if i manually check out the whole project in Perforce. The problem is gone when i copy the project directory and work in the copy which is no longer under source control, or if i create a branch in Perforce and work in the branch (under source control).

One of these projects i shared with a colleague, and he had exactly the same issues on his Mac. We eventually switched to Subversion and the spinning-wheel issue immediately went away. Now that i've received an updated copy of the project and simply put it under Perforce as a new project, the problem also went away (so far it did not resurface). It leads me to think that it may be caused by a larger number of file revisions.

The server itself (version 2009.1) is on a different (Windows) machine on my LAN, so there's definetely no Internet lag involved. The complete repository is just 1 GB in size spread over a dozen projects or so.

I'm sorry if the question seems more like a support inquiry for Perforce. However i'm using the free version of Perforce so i'm not entitled to get support from them. I hope no one minds me asking here. I'm really bummed out by this. I don't want to have to create a new branch for the project each time the spinning wheel problem surfaces.

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

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

发布评论

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

评论(1

千仐 2024-08-31 12:01:10

我怀疑是 XCode Perforce 插件导致了这些问题。我本来打算建议您就该插件联系 Perforce,但是 P4 集成是 XCode 的一部分,这意味着您需要与 Apple 支持人员联系。

快速谷歌显示这是 XCode 3.1 的一个已知问题。一个可能的解决方法是禁用 P4 集成并使用 AppleScript 签出文件。

http://www.jaimerios.com/?p=136

HTH,

I suspect that it is the XCode Perforce plugin that is causing the issues. I was about to suggest that you contact Perforce regarding the plugin, however the P4 integration is part of XCode which you means you need to talk to Apple support.

A quick google reveals that this is a known issue with XCode 3.1. A possible work-around is disabling the P4 integration and using AppleScript to check out files.

http://www.jaimerios.com/?p=136

HTH,

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