Folks, is it possible to create a custom task for copying resources in Xcode?
I'd like to use rsync instead of Xcode's built-in resource copy tasks. From time to time Xcode for some reason doesn't copy modified resources to the bundle so I'd like to have a better control over this task.
I think I need some magic variable which points to the destination bundle directory, so I could create the following task:
rsync -a ${SRCROOT}/resources ${PATH_TO_THE_BUNDLE}/
...but I have no idea if there is such a variable.
Update: I tried ${BUILT_PRODUCTS_DIR} variable and it points to some intermediate directory while during the runtime [[NSBundle mainBundle] pathForResource: my_path ofType: nil] returns something completely different. Is there any Xcode variable which which returns the same result as NSBundle does?