Use rvm to force specific Ruby in Xcode Run Script build phase -


outside of xcode use specific version of ruby, using rvm manage multiple ruby installations.

apple's command line dev tools install ruby @ /usr/bin/ruby , version 1.8.7.

i use 1.9.3 through rvm.

is there way force xcode use 1.9.3 installation when running run script build phases?

i tried setting shell path full path of specific ruby, didn't seem make difference, mean particular gems have installed in 1.9.3 weren't available/visible script when run within xcode.

if run project through xcodebuild on command line, run script phase uses specific ruby because it's being run within shell environment (even if shell path in project file set /usr/bin/ruby, still uses 1.9.3).

what can make ide use 1.9.3 ruby install?

try @ beginning of script in xcode:

source "$home/.rvm/scripts/rvm" 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -