Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's maddening trying to get XCode to work with Perforce. Here is a solution I came up with that is:</p> <ul> <li>Quick to get set up</li> <li>Easy to burn into your muscle-memory so you don't have to think to check files out</li> <li>Doesn't require any mousing at all</li> </ul> <p>One-time setup as follows:</p> <ol> <li>Download and install the free "DTerm" app from <a href="http://decimus.net/DTerm" rel="nofollow">Decimus Software.</a></li> <li>Make sure you have the Perforce command-line utility installed. Type "p4" at a Terminal window prompt, and see if it recognizes this command. If not, you need to go to <a href="http://perforce.com" rel="nofollow">Perforce's website</a> and find and download what they currently call "The Perforce Command-Line Client (P4)". There's no installer; just save it from your browser right into <code>/usr/bin</code> (or whatever) and do a chmod +x on it. For official setup notes, and if you need to do any custom environmental variable tricks, please see <a href="http://kb.perforce.com/article/71#CLIENTS-Install" rel="nofollow">this tech note</a>.</li> </ol> <p>Once you've done this, let's say you are in XCode and you are viewing a source code file that you want to check out. Here's the rigamarole:</p> <ol> <li>Have the file showing in the active XCode editor</li> <li>Hit <code>Shift Command Enter</code> to get a DTerm window</li> <li>Type <code>p4 edit</code> and then hit <code>Shift Command V</code> to paste in the filename of the active file, and hit return</li> <li>Perforce checks the file out and DTerm shows you the status/errors.</li> <li>Hit 'escape' to dismiss the DTerm window</li> <li>Begin making your changes to the file in XCode. XCode may (erroneously) say that the file is read-only, because it's dumb and isn't aware that it's been made from read-only to read-write, so you have to hit Allow Editing. I didn't trust this at first and double-checked it a few times, but now I have blind faith that it's doing the right thing.</li> </ol> <p>I haven't set this up in a while, so please let me know if you run into any glitches and I'll update my info here to make it as painless as possible. But otherwise, this is the best solution I've found.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload