Showing posts with label xcode. Show all posts
Showing posts with label xcode. Show all posts

Thursday, October 15, 2009

Automatic version numbering in Xcode

Here's a nice piece on automatic version numbering from within Xcode. The article details almost all the work you have to perform to get automatic versioning up and running.

Here are the missing pieces:
  1. Place the Xcode config file in the root of your project.
  2. In your Info.plist file change the value for "Bundle version" to something like "0.1 (${CURRENT_PROJECT_VERSION})" - depending on your choice for the variable in the config file.
With those two things in place, versioning should be up and running in no time. Thanks, Diego!

Wednesday, August 26, 2009

Xcode and SVN

Today was my first time trying to work with Xcode 3 and Subversion. Using two separate Macs to check out the shared project from SVN, I quickly discovered that it was not as straight forward to work with Subversion from inside Xcode as I had hoped (and come to know from NetBeans and Eclipse).

First of all, only one of the Macs successfully set the SCM repository after the checkout on the other one I had to manually set the repository after checkout. I think I did the very same steps on both Macs but behaviour was different - how strange.

Next thing I noticed: if you'd like to update your project but have a file already displayed in the editor, make sure you use Refresh Entire Project before selecting Update Entire Project. It seems that without calling Refresh, the file is indeed updated on the file system but the change won't be visible within the editor unless you choose a different, external editor to open the file.

If anybody can shed some light on the issue, let me know in the comments!