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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -