Xcode 卡在“正在加载修订版"上和“扫描工作副本......"使用源代码管理时 [英] Xcode stuck on "Loading Revision" and "Scanning for working copies..." when using Source Control

查看:24
本文介绍了Xcode 卡在“正在加载修订版"上和“扫描工作副本......"使用源代码管理时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近注意到我当前项目的一些提交显示在组织者 - 存储库"窗口中的其他项目下.此外,组织者 - 存储库"窗口还在左侧面板列表中显示了我没有处理的其他项目,包括当前项目的副本.因此,我使用左下角的 (-) 键从左侧面板中删除了不必要的项目列表.

I recently noticed that some of my commits from my current project were being displayed under other projects in the "Organizer - Repositories" window. Additionally, the "Organizer - Repositories" window also displayed other projects in the left panel list that I was not working on, including duplicates of the current project. I therefore removed the unnecessary project listings from the left panel using the (-) key at the bottom left.

然而,现在 Xcode 中的版本编辑器(在助手编辑器"按钮旁边)似乎不起作用.当我尝试加载Time Machine"视图(带有 CCW 箭头的时钟指针)时,状态栏显示正在加载修订版"并且从不加载我以前的提交.我之前的提交出现在当前项目下的Organizer - Repositories"窗口中.

Now however it appears that the Version editor from within Xcode (next to the Assistant editor button) isn't working. When I try to load up the "Time Machine" view (clock hands with CCW arrow), the status bar says "Loading Revision" and never loads my previous commits. My previous commits appear in the "Organizer - Repositories" window under the current project.

此外,尝试进行新的提交会导致 Xcode 对话框显示正在扫描工作区以获取工作副本,请稍候",而在其下方则卡在短语正在扫描工作副本..."上旁边的微调器.

In addition, trying to make new commits results in an Xcode dialogue box that says "Please wait while workspace is being scanned for working copies," while underneath it is stuck on the phrase "Scanning for working copies..." with the spinner next to it.

我在使用 Xcode 时也遇到了其他几个问题,因为我刚刚开始使用源代码管理.我正在运行外部监视器并使用 Lion(如果相关).我的其他新问题之一是,如果我离开计算机并返回(因此我必须重新登录),iOS 模拟器通常会冻结.这迫使我强制退出 Xcode 并重新启动它.

I've been having several other problems with Xcode as well, having just started using source control. I am running an external monitor and using Lion (if that is relevant). One of my other new problems is that the iOS simulator will often freeze up if I leave my computer and return (so that I have to log back in). This forces me to force-quit Xcode and restart it.

更新 1:下面的链接看起来像解决问题,除了位置"字段不可编辑(即,它变灰)并设置为不适用"."(参见 Xcode 4 卡在扫描工作副本"上一>)

UPDATE 1: The following link appears like it would solve the problem, except that the field "Location" is not editable (i.e., it is greyed out) and is set to "Not Applicable." (cf. Xcode 4 stuck on "Scanning for working copies")

更新 2:最近一次重新启动 Xcode 后,我现在可以再次提交.我还意识到每个文件的Time Machine"视图都不同;即,它只会可视化该特定文件的修订历史记录.我仍然不明白为什么我对当前项目所做的一些提交也出现在其他项目下,或者为什么 Xcode 认为这些项目开始时是开放的(通过单击并按住 Dock 中的 Xcode 图标来证明).

UPDATE 2: After restarting Xcode this most recent time, I can now make commits again. I also realized that the "Time Machine" view differs for every single file; i.e., it will only visualize the revision history for that specific file. I still do not understand why some of the commits that I made to my current project are also showing up under other projects, or why Xcode thinks those projects are open to begin with (as evidenced by click-holding the Xcode icon in the dock).

推荐答案

我通过删除里面的所有内容解决了这个问题:

I resolved the issue by deleting everything inside of:

yourproject.xcodeproj/project.xcworkspace/

完全没有对项目造成任何伤害,并且 Xcode 也随着对项目所做的每次更改而崩溃.

No harm done to the project at all and the Xcode crashing with every change done to the project stopped as well.

您还需要退出版本编辑器.

Also you will need to exit the version editor.

这篇关于Xcode 卡在“正在加载修订版"上和“扫描工作副本......"使用源代码管理时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆