Quickies

[categories] [index] [all (531)] [latest]

Xcode
  1. Here is an XCode run script build phase, setting your Cocoa app version to the latest date and svn revision each time you build. The values then appear in the Finder or in the application "About" panel.

    In the XCode Project view, click on your target. Choose Project menu > New Build Phase > New Run Script Build Phase. Put this script just before "Copy Bundle Resources". Set the ' CFBundleVersion^ value to __myBundleVersion__.

    Double-clic or apple-I on the Run Script build phase. Paste this python script. Don't forget to set the python path. Also check your svnversion, which may vary.

    Clean your projet, build and run it. You should be able to see something like this.