Translate

March 18, 2013

Run RhoMobile Apps With XCode Version 4.6.1

I started building Rhodes application on my mac book pro. I had followed every step for building the mobile application using Rhodes. I did configured the Rhodes using rhodes-setup command. On my machine I didn't installed android and blackberry sdk so I skipped those settings.
When I run my application by using following command:

rake run:iphone

I am getting following error;

xcodebuild: error: SDK "iphonesimulator5.0" cannot be located. 

I simply solved this issue by changing the configuration settings of Rhodes.
I found that the invalid SDK is pointed in BUILD.YML

I changed iphone simulator sdk in iphone section in build.yml like this

sdk: iphonesimulator6.1

After this my application could run on the iPhone simulator!

March 3, 2013

How to Install ruby 2.0 with RVM

Ruby 2.0 was released on 24th February 2013, on the 20th birthday of Ruby.
Get the newest version with favorite ruby version manager rvm.
You must install libyaml because Ruby 2.0 deprecated syck in favor of psych.

Make sure you have the latest RVM:
rvm get stable

Execute following command from terminal after installing RVM:

# For Mac with Homebrew
brew install libyaml

# For Ubuntu systems
apt-get install libyaml-dev
rvm pkg install openssl
rvm install 2.0.0 --with-openssl-dir=$HOME/.rvm/usr  --verify-downloads 1
rvm use 2.0.0
rvm use 2.0.0

OR Simply use following
rvm get stable && rvm install ruby-2.0.0