More – Chapter 8
Chapter 8, “Version Control,” introduces the concept of version control, or source control management (SCM). It demonstrates Xcode's support for SCM, and shows how to set up a simple, file system-based Subversion repository.
| Page | Priority | Description |
|---|---|---|
| 97 | High | Configuring Subversion |
Chapter 8, page 97
Configuring Subversion
On page 97, I advise that you add this to the global-ignores line of the ~/.subversion/config file:
build * .nib *.so *.pbxuser *.mode* *.perspective*
This is in error. Depending on how you read the line, this would exclude either all .nib packages, or worse, all files, from version control. The added text should properly be:
build *~.nib *.so *.pbxuser *.mode* *.perspective*
Note the tilde (~) between the first asterisk and .nib.
You’ll be tipped off to the error if the checked-out copy of your project is empty, or lacks NIB files. Regardless, you will have to take corrective action.
The remedy is
- Edit the
~/.subversion/configfile as shown. - Use the Finder (or the command line, if you prefer) to visit each working-copy directory you checked out since you originally edited
~/.subversion/config. Identify the files that are missing, and copy them into the working directory from your original project directory. - On the command line, do a
svn add, listing the formerly-missing files.
The editing process had been plagued with dropped tildes, and this one slipped through. I apologize for this error. My publisher and I are doing what we can to correct it.