Tag Archives: Xcode

File references relative to DERIVED_FILE_DIR in Xcode

Let’s say you have a Mac or iOS app which stores its data in an SQLite database. It looks for this database file on launch; if missing, the app copies a template file from its bundle. How do you configure your Xcode project to store that template file in the app bundle? Let’s also say

Make Xcode nag you about unfinished TODOs

Add a simple Run Script Build Phase to your project and you’ll never forget another TODO again.

Avoid defining your iPhone app’s default values in two places

This is a guide to using XSLT to extract default values from your iPhone app’s Settings bundle into a separate property list file. That file can be loaded by your app at runtime, sparing you the need to maintain the same data in two places and avoiding the risk of a mismatch leading to buggy

Show Xcode where to find Subversion 1.5

I installed Subversion 1.5 using MacPorts (with the Porticus front-end), which places libraries in /opt/local/lib by default.  Xcode 3.1.1 supports Subversion 1.5, but it only looks in /usr/lib, so even though I have Subversion 1.5 installed, it claims my working copies are incompatible.  How did I fix this? sudo -s cd /usr/lib tar cvf oldapr+svnlib.tar libapr*