Xcode 4.2 and SVN Authentication Fix

I was having issues with SVN for a long time after upgrading to Xcode 4+ from version 3.2+ when trying to commit file changes. No suggestion I found on the Internet solved them until I found a proper solution. After making my /etc/apache2/other/svn.conf file resemble this, I was finally able to get Xcode 4 to change all the red lights to green. Looks like I won’t have to switch to git after all.

<Location /repos>
     DAV svn
     SVNParentPath "/usr/local/svn/repos"
     Order deny,allow
     Deny from all
     Satisfy any
     AuthType Basic
     AuthName "SVN Repository Realm"
     AuthUserFile /etc/apache2/svn-auth-file
     #read-only access
        Require valid-user
        Allow from localhost
        # Allow from another-ip
        Satisfy any
     # write access
       Require valid-user
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Mac OS X Snow Leopard, PHP, MySQL, SVN, Xcode, and Me…

With minimal effort, I was able to get the PHP bundled with Snow Leopard to use the PHP extensions that I had compiled for xdebug, imagick, and magickwand to run in 64bit mode.

Snow Leopard comes bundled with Apache 2.2.11, PHP 5.3.0, and SVN 1.6.2.

I upgraded my MySQL install from 5.0.77 to 5.1.37 and then moved my data folder to another location to help keep things sane using the /etc/my.cnf file.

I installed the Xcode from the Snow Leopard CD and downloaded the iPhone SDK 3.1 Beta 3 for Snow Leopard.  Slightly different interface, but I welcome the changes.

So now, instead of using external packages for SVN and PHP (Entropy), now I’m using the prepackaged bundled software.  I did have to reconfigure my svn connection in Apache as it got toasted in the upgrade to Snow Leopard.  It wasn’t a problem though as it was only a few lines.

Now I can sleep good, I hope.

VN:F [1.9.22_1171]
Rating: 7.3/10 (4 votes cast)
VN:F [1.9.22_1171]
Rating: +2 (from 4 votes)

Subversion + Mac OS X Leopard + XCode 3 = Faster Coding

I have set up Subversion to store the repos of my iPhone apps I’m developing on my Mac system.  Now all I need to do is begin working on a core for my apps that I can use as the basis for all future apps.

If anyone has any trouble setting up Subversion on the Mac to use with XCode, here is a place to start:

ADC – Using Subversion with XCode 3 on Mac OS X Leopard

Subversion with Mac OS X Tutorial

How to setup a Subversion server on OS X 10.5 (Leopard)

SVN, Apache2, OS X Leopard 10.5

Also note, that if you download and install the Subversion 1.5+ binary if you choose to use the newer version, be sure to direct to the proper file in the /opt/subversion/lib/svn-apache/ directory and not the /usr/libexec/apache2 directory. If you don’t, then you will get the following “Could not open the requested SVN filesystem” error on any repos created with svn higher than 1.4+ that comes preloaded with the Mac OS X 10.5 Leopard.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)