问题
If I start typing in a readonly file in Xcode for the first time, I get prompted with a dialog that basically says the file is locked for editing, and asks me if I want to unlock it.
If I choose Unlock, I can continue editing the file. At one point, I got annoyed at this (as I will always want it to unlock), and so I clicked "Do not show this message again", with the expectation that it would remember my choice.
However, while I no longer get prompted, it also does not unlock the files anymore - it seems the default without being prompted is always "Don't Unlock".
Is there a way to automatically choose "Unlock" without being prompted every time?
(Bit of background - I'm using Perforce for source control, and have an Xcode Behavior script set up to check out files when they are unlocked based on http://kb.perforce.com/article/1735/automatically-checking-out-files-for-edit-in-xcode-43, since Xcode no longer integrates nicely with Perforce)
回答1:
It looks like the answer to this is "No".
The behavior (and wording used in the dialog) is not to remember your selection, but to simply not prompt you again (and not make any changes).
回答2:
go to xcode-> preferences-> General -> Dialog warnings reset
来源:https://stackoverflow.com/questions/11440544/xcode-prompt-file-is-locked-for-editing-doesnt-remember-unlock-choice-after-cho