What should I do about this Xcode organizer error when trying to export a snapshot?

风格不统一 提交于 2019-12-11 14:11:50

问题


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: 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.


回答1:


Like many problems in Xcode, i just did cmd + Q and restarted Xcode. And now it works as expected. So at the very least please try that!




回答2:


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.



来源:https://stackoverflow.com/questions/12825674/what-should-i-do-about-this-xcode-organizer-error-when-trying-to-export-a-snapsh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!