无法使用 XCode 创建快照 [英] Unable to create snapshots with XCode

查看:29
本文介绍了无法使用 XCode 创建快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 XCode 中为我的特定项目拍摄更多快照.如果我尝试创建快照,它会在状态栏中显示正在创建快照 .."并一直持续下去.然后我强制退出 Xcode,重新启动并再次尝试创建快照.这次它立即给出错误消息..remove file manual .....lock".所以我然后在终端中使用 rm 命令删除显示的文件.然后我再次尝试创建快照,同样的循环继续.

I am unable to take any more snapshots of a particular project of mine in XCode. If I try to create a snapshot, it says 'Creating snapshot ..' in the status bar and goes on forever. I then force quit the Xcode, relaunch and try creating a snapshot again. This time it straight away gives the error message '..remove file manually .. ...lock'. So I then remove the shown file using the rm command in terminal. And then I again try creating the snapshot and the same cycle continues.

我该如何解决这个问题?

How can I fix this issue?

我已经为这个项目拍摄了很长时间的快照,有一天我不得不删除所有旧快照,因为我突然意识到它们占用了 12+ GB!即使现在,如果我尝试为该项目创建快照,它会在几分钟内达到 3 GB,然后我强制退出它.(我很确定这曾经完美地工作,直到一段时间之前并且没有占用千兆字节的空间.)

I had been taking snapshots for this project for a long time and one day had to delete all the old snapshots as I suddenly realized that they are taking up 12+ GB! Even now if I try to create a snapshot for this project it reaches 3 GB in a few minutes and then I force-quit it. (I am pretty certain this used to work perfectly until some time back and didn't take gigabytes in space.)

推荐答案

我也遇到了同样的问题,我是这样解决的:

I too had the same problem and this is how I fixed it:

我在 Xcode -> Organizer -> Repositories 中注意到我的整个 ~/username 文件夹显示为一个存储库.我尝试在 Xcode 中删除它,但它一直在返回.以前,在我安装 Xcode 4 和使用 Xcode 3 之前,我已经安装了 GIT 并将 opdenkamp/xbmc 克隆到我的主文件夹.由于缺乏使用 GIT 的知识,我将我的整个文件夹作为一个存储库,每次我尝试在 Xcode 中制作我的项目的快照时,它都会制作 ~/username(或其他一些进程)的快照永远在 ~/Library/Developer/Xcode/Snapshots/中创建一个多 GB 文件.事实上,我会强制退出"Xcode 来停止这个过程.

I noticed in Xcode -> Organizer -> Repositories that my whole ~/username folder was showing up as a repository. I tried deleting it in Xcode but it kept returning. Previously, before I had installed Xcode 4, and using Xcode 3, I had installed GIT and cloned opdenkamp/xbmc to my home folder. Through a lack of knowledge on the use of GIT, I had made my whole folder a repository and every time I tried to make a snapshot of my project in Xcode it was making a snapshot of ~/username (or some other process) that was taking for ever and creating a multi GB file in ~/Library/Developer/Xcode/Snapshots/ . In fact I would "force quit" Xcode to stop the process.

所以我删除了 Xcode 中的存储库,然后我在终端中从我的主目录中输入了 Xcode ~/username

So I deleted the repository in Xcode, I quite Xcode then in the terminal I typed from my home directory ~/username

sudo rm -r .git

如果您想保留存储库(这对我来说不是问题),这可能不是一个好主意,但现在制作 xcode 项目的快照需要一秒钟,并生成一个与 Xcode 顺序相同的文件项目而不是现在在多 GB 球场

Probably not a good idea if there are repositories that you want to keep (which was not a problem for me) but now making a snapshot of an xcode project takes a second and generates a file that is of the order of the Xcode project and not now in the multi GB ball park

这篇关于无法使用 XCode 创建快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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