尝试导出快照时,我应该如何处理此 Xcode 管理器错误? [英] What should I do about this Xcode organizer error when trying to export a snapshot?

查看:26
本文介绍了尝试导出快照时,我应该如何处理此 Xcode 管理器错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是在项目"屏幕上的 Xcode 4.5 Organizer 中.我有很多快照,包括许多在更新到 Xcode 4.5 后制作的快照.如果我选择其中之一(哪个无关紧要)然后单击导出快照",我会收到一个带有以下消息的对话框:

This is in Xcode 4.5 Organizer on the 'Projects' screen. I have lots of snapshots including many made after updating to Xcode 4.5. If I select one of them (it doesn't matter which one) then click "Export Snapshot" I get a dialog box with this message:

fatal: 模棱两可的参数 'ae30b7dea8b5..a934b593abf6': 未知版本或路径不在工作树中.使用--"将路径与修订分开.

fatal: ambiguous argument 'ae30b7dea8b5..a934b593abf6': unknown revision or path not in the working tree. Use '--' to separate paths from revisions.

这让我所有的快照都没用了.任何人都可以解释发生了什么以及如何解决它?

This makes all of my snapshots useless. Can anybody explain what's going on and how to get around it?

我现在实际上并不需要恢复快照,所以如果我能修复这个错误,我可以把所有旧的都扔掉并制作一个新的.

I don't actually need to recover a snapshot right now so if I could fix this error I could just trash all the old ones and make a new one.

推荐答案

我不知道原因,但我摸索着找到了解决方法.在 Xcode 4.5 中,单击 File =>Project Settings",然后在Snapshots"选项卡上为Snapshots location"选择Custom"并输入一个新位置.我输入了 ~/Developer/Xcode/Snapshots 但输入的内容可能无关紧要.然后文件菜单中的创建快照"和恢复快照"项工作,指的是新的自定义位置.

I don't know the cause but I fiddled around and found out how to fix it. In Xcode 4.5 click File => "Project Settings" then on the Snapshots tab select "Custom" for Snapshots location and enter a new location. I entered ~/Developer/Xcode/Snapshots but it probably doesn't matter what you enter. Then the "Create Snapshot" and "Restore Snapshot" items in the File menu work, referring to the new custom location.

令人惊讶的是,组织者导出快照"现在也可以使用了!奇怪的!.它指的是旧位置,所有旧快照仍然存在,现在可以访问和导出它们而不会出现错误消息.去图.

Surprisingly, the Organizer "Export Snapshot" now works too! Weird!. It refers to the old location and all the old snapshots are still there and now they can be accessed and exported without the error message. Go figure.

这篇关于尝试导出快照时,我应该如何处理此 Xcode 管理器错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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