If anybody stumbles across this from Google, I found that the simplest thing to do was:
Have devs install rbenv
on their machines, and add ~/.rbenv/shims
to the PATH in the XCode build script like:
export PATH=~/.rbenv/shims:$PATH
# Exec rest of your script
# ...