Wednesday, 19 November 2008

Failing snapshots in XCode

Did it ever happened to you that the XCode "File > Make Snaphot" fails miserably with a Cannot-change-permissions-somewhere-down-over-/tmp/XY!$%^ ?

Well if so check the permissions of your project file, they must be writable by the owner only. To fix the problem launch a terminal, go in the project folder and use the
chmod -Rv g-w,o-w *
command. Of course double check you really are in the project folder and you really don't need those writing permissions in place.

Wednesday, 5 November 2008

Importing the OmniGroup Frameworks into your Subversion repository

This is a quick reference based on the Vendor Branches of the "Version Control with Subversion" book.

So you want to use the wonderful code that the Omni Group gives you for free. Good, just follow the following instructions.

Create a vendor branch in your repository:
myRepo/trunk
myRepo/branches
myRepo/tags
myRepo/vendor/OmniFrameworks
then download the frameworks distribution from the Omni Group site, unpack it in the, say, tmp folder of your home. It will have a structure like:
tmp/OmniGroup/Configurations
tmp/OmniGroup/Frameworks
tmp/OmniGroup/Scripts
Now use the svn_load_dirs.pl program to import the distribution to the repository.

svn_load_dirs.pl -t 2008-09-09 \
http://example.com/myRepo/vendor/OmniFrameworks \
current \
~/tmp/OmniGroup
You will have the code loaded to the current and 2008-09-09 directories.
myRepo/trunk
myRepo/branches
myRepo/tags
myRepo/vendor/OmniFrameworks/current
myRepo/vendor/OmniFrameworks/2008-09-09
The next time you import a new version of the frameworks, do the same steps as above. According to the Subversion Book everything will be all right ;)

:)